private void EndEvents() { chkEnabled.Change -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkEnabled_Change); chkArmorTink.Change -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkArmorTink_Change); chkItemTink.Change -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkItemTink_Change); chkWeaponTink.Change -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkWeaponTink_Change); chkMagicItemTink.Change -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkMagicItemTink_Change); chkSalvaging.Change -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkSalvaging_Change); //chkSetUst.Change -= new EventHandler<MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkSetUst_Change); //chkSetFocusingStone.Change -= new EventHandler<MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkSetFocusingStone_Change); chkAlchemy.Change -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkAlchemy_Change); chkCooking.Change -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkCooking_Change); chkFletching.Change -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkFletching_Change); chkLockpick.Change -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkLockpick_Change); // chkTier4Rares.Change -= new EventHandler<MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkTier4Rares_Change); chkBuffsEnabled.Change -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkBuffsEnabled_Change); chkBuffOnStart.Change -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkBuffOnStart_Change); chkUseBeers.Change -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkUseBeers_Change); chkUseRares.Change -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkUseRares_Change); chkUseBuffBot.Change -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkUseBuffBot_Change); chkLogOff.Change -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkLogOff_Change); //chkUseCharge.Change -= new EventHandler<MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkUseCharge_Change); //chkEquip.Change -= new EventHandler<MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkEquip_Change); //chkUseWeb.Change -= new EventHandler<MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkUseWeb_Change); chkRareAllegChan.Change -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkRareAllegChan_Change); chkRareTradeChan.Change -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkRareTradeChan_Change); chkEnableMail.Change -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkEnableMail_Change); chkEnterSpamMail.Change -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkEnterSpamMail_Change); chkEnterSpamRare.Change -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkEnterSpamRare_Change); //chkCalcMajors.Change -= new EventHandler<MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkCalcMajors_Change); //chkJourneymanPet.Change -= new EventHandler<MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkJourneymanPet_Change); //chkArtisanPet.Change -= new EventHandler<MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkArtisanPet_Change); //chkMasterPet.Change -= new EventHandler<MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkMasterPet_Change); chkSetBuffingWand.Change -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkBuffingWand_Change); Decal.Adapter.CoreManager.Current.ItemSelected -= new EventHandler <ItemSelectedEventArgs>(Current_ItemSelected); Core.ChatBoxMessage -= new EventHandler <Decal.Adapter.ChatTextInterceptEventArgs>(Core_ChatBoxMessage); Core.WorldFilter.EnterTrade -= new EventHandler <Decal.Adapter.Wrappers.EnterTradeEventArgs>(WorldFilter_EnterTrade); Core.WorldFilter.AcceptTrade -= new EventHandler <AcceptTradeEventArgs>(WorldFilter_AcceptTrade); Core.WorldFilter.AddTradeItem -= new EventHandler <AddTradeItemEventArgs>(WorldFilter_AddTradeItem); CoreManager.Current.RenderFrame -= new EventHandler <EventArgs>(RenderFrame_Equip); Core.EchoFilter.ServerDispatch -= HandymanServerDispatch; // WindowMessage += new EventHandler<WindowMessageEventArgs>(FilterCore_WindowMessage); MasterTimer.Stop(); MasterTimer = null; // MasterTimer.Dispose(); if (BuffingTimer != null) { BuffingTimer.Stop(); BuffingTimer = null; buffPending = false; } }
private void WelcomeForm_Deactivate(object sender, EventArgs e) { MasterTimer.Stop(); }