private void InitMain() { wow = new Memory.Memory(); SS = new SpellSearcher(); FH = new FarmHonor(); Farmer = new Farm(); Running = false; PCoord = new List <Coords>(); if (wow.wow.ProcessId != 0) { notifyIcon1.Text = "Farmhelper: attached to wow: " + wow.wow.ProcessId.ToString(); WowControl.UpdateStatus("Attached to wow: " + wow.wow.ProcessId.ToString() + "."); MainTimer.Enabled = true; } else { WowControl.UpdateStatus("Not found wow process."); notifyIcon1.Text = "Farmhelper: not found wow process"; } WowControl.LoadGoods(); ProcessMainPage(); }
private void InitMain() { wow = new Memory.Memory(); SS = new SpellSearcher(); FH = new FarmHonor(); Farmer = new Farm(); Running = false; PCoord = new List<Coords>(); if (wow.wow.ProcessId != 0) { notifyIcon1.Text = "Farmhelper: attached to wow: " + wow.wow.ProcessId.ToString(); WowControl.UpdateStatus("Attached to wow: " + wow.wow.ProcessId.ToString() + "."); MainTimer.Enabled = true; } else { WowControl.UpdateStatus("Not found wow process."); notifyIcon1.Text = "Farmhelper: not found wow process"; } WowControl.LoadGoods(); ProcessMainPage(); }