Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Microsoft.VisualBasic;
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.Data;
- using System.Diagnostics;
- using System.Net;
- public class Form1
- {
- private void PictureBox1_Click(object sender, EventArgs e)
- {
- try
- {
- Process.Start(My.Application.Info.DirectoryPath.ToString + "\\***.exe");
- Application.Exit();
- }
- catch (Exception ex)
- {
- Interaction.MsgBox("CANNOT FIND ***.exe PLEASE CHECK FILE DIRECTORY!", MsgBoxStyle.Critical);
- }
- try
- {
- My.Computer.FileSystem.WriteAllText(My.Application.Info.DirectoryPath.ToString + "\\Data\\enUS\\realmlist.wtf", "*******", false);
- Interaction.MsgBox("Realmlist is changed!", MsgBoxStyle.Information);
- }
- catch (Exception ex)
- {
- Interaction.MsgBox("Cannot find realmlist, please contact administrator for more help", MsgBoxStyle.Critical);
- }
- if (My.Computer.FileSystem.DirectoryExists(My.Application.Info.DirectoryPath.ToString + "\\Cache"))
- {
- try
- {
- My.Computer.FileSystem.DeleteDirectory(My.Application.Info.DirectoryPath.ToString + "\\Cache", Microsoft.VisualBasic.FileIO.DeleteDirectoryOption.DeleteAllContents);
- Interaction.MsgBox("Cache Cleared!", MsgBoxStyle.Information);
- }
- catch (Exception ex)
- {
- Interaction.MsgBox("CANNOT FIND CACHE PLEASE CHECK FILE DIRECTORY!", MsgBoxStyle.Critical);
- }
- }
- }
- private void PictureBox1_MouseEnter(object sender, EventArgs e)
- {
- PictureBox1.BackgroundImage = My.Resources.Play_hover;
- }
- private void PictureBox1_MouseLeave(object sender, EventArgs e)
- {
- PictureBox1.BackgroundImage = My.Resources.Play_nonclick;
- }
- private void PictureBox4_Click(object sender, EventArgs e)
- {
- System.Diagnostics.Process.Start("http://immortal-wow.com/");
- }
- private void PictureBox4_MouseEnter(object sender, EventArgs e)
- {
- PictureBox4.BackgroundImage = My.Resources.home_hover;
- }
- private void PictureBox4_MouseLeave(object sender, EventArgs e)
- {
- PictureBox4.BackgroundImage = My.Resources.Home_nonclick;
- }
- private void PictureBox5_Click(object sender, EventArgs e)
- {
- System.Diagnostics.Process.Start("******");
- }
- private void PictureBox5_MouseEnter(object sender, EventArgs e)
- {
- PictureBox5.BackgroundImage = My.Resources.Donate_hover;
- }
- private void PictureBox5_MouseLeave(object sender, EventArgs e)
- {
- PictureBox5.BackgroundImage = My.Resources.Donate_nonclick;
- }
- private void CheckForUpdateToolStripMenuItem_Click(object sender, EventArgs e)
- {
- CheckForUpdates();
- }
- public void CheckForUpdates()
- {
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- System.Net.HttpWebRequest request = System.Net.HttpWebRequest.Create("******");
- System.Net.HttpWebResponse response = request.GetResponse();
- System.IO.StreamReader sr = new System.IO.StreamReader(response.GetResponseStream());
- string newestversion = sr.ReadToEnd();
- string currentversion = Application.ProductVersion;
- if (newestversion.Contains(currentversion))
- {
- }
- else
- {
- Interaction.MsgBox("There is a new update we will download it now for you.");
- System.Diagnostics.Process.Start("******");
- }
- }
- private void PictureBox6_Click(object sender, EventArgs e)
- {
- this.Close();
- }
- private void PictureBox6_MouseEnter(object sender, EventArgs e)
- {
- PictureBox6.BackgroundImage = My.Resources.x_button_Hover;
- }
- private void PictureBox6_MouseLeave(object sender, EventArgs e)
- {
- PictureBox6.BackgroundImage = My.Resources.x_button_nonclick;
- }
- private void PictureBox3_Click(object sender, EventArgs e)
- {
- }
- public Form1()
- {
- Load += Form1_Load;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement