private void MainForm_Load(object sender, System.EventArgs e) { actHook = new UserActivityHook(); actHook.KeyDown += new KeyEventHandler(MyKeyUp); actHook.KeyDown += new KeyEventHandler(MyKeyDown); if (!this.RefreshPointers()) { //string msg = "Can't find WoW. Please run WoW and login to your character before using Mobius."; //string caption = "Error! Can't find WoW"; //MessageBox.Show(msg, caption, MessageBoxButtons.OK, MessageBoxIcon.Error); //Application.Exit(); } this.LoadLocationsFromFile(); this.RefreshGUIValues(); this.timRefreshCoords.Enabled = true; this.update.Enabled = true; }
private void MainForm_Load(object sender, System.EventArgs e) { actHook= new UserActivityHook(); actHook.KeyDown+=new KeyEventHandler(MyKeyUp); actHook.KeyDown+=new KeyEventHandler(MyKeyDown); if (!this.RefreshPointers()) { //string msg = "Can't find WoW. Please run WoW and login to your character before using Mobius."; //string caption = "Error! Can't find WoW"; //MessageBox.Show(msg, caption, MessageBoxButtons.OK, MessageBoxIcon.Error); //Application.Exit(); } this.LoadLocationsFromFile(); this.RefreshGUIValues(); this.timRefreshCoords.Enabled = true; this.update.Enabled = true; }