Example #1
0
        public void Dispose()
        {
            Menu.AutoDisableItem.PropertyChanged -= AutoDisableChanged;

            if (Menu.AutoDisableItem)
            {
                Handler?.Cancel();
            }
        }
Example #2
0
 public void Dispose()
 {
     ///	UpdateManager.Unsubscribe (OnUpdate);
     //	UpdateManager.Unsubscribe (OnUpdate2);
     onUpdateHandler?.Cancel();
     onUpdateHandler2?.Cancel();
 }
Example #3
0
 public void Dispose()
 {
     killStealSettingsMenu.KillStealItem.PropertyChanged -= KillStealChanged;
     if (killStealSettingsMenu.KillStealItem)
     {
         handler?.Cancel();
     }
 }
Example #4
0
 public void Dispose()
 {
     menu.KillStealItem.PropertyChanged -= KillStealChanged;
     if (menu.KillStealItem)
     {
         handler?.Cancel();
     }
 }
Example #5
0
 public void Dispose()
 {
     menu.QlastHit.PropertyChanged -= QlastHitChanged;
     if (menu.QlastHit)
     {
         handler?.Cancel();
     }
 }
Example #6
0
        public void Cancel()
        {
            if (!isRunning)
            {
                return;
            }

            TaskHandler?.Cancel();
            isRunning = false;
        }
Example #7
0
 private void KillStealChanged(object sender, PropertyChangedEventArgs e)
 {
     if (killStealSettingsMenu.KillStealItem)
     {
         handler.RunAsync();
     }
     else
     {
         handler.Cancel();
     }
 }
Example #8
0
 private void QlastHitChanged(object sender, PropertyChangedEventArgs e)
 {
     if (menu.QlastHit)
     {
         handler.RunAsync();
     }
     else
     {
         handler.Cancel();
     }
 }
Example #9
0
 public void Uninstall()
 {
     _menu.IsAutoKillStealEnabled.PropertyChanged -= IsAutoKillStealChanged;
     _handler?.Cancel();
     UpdateManager.Unsubscribe(Stop);
 }
Example #10
0
 protected override void OnDeactivate()
 {
     base.OnDeactivate();
     ComboHandler.Cancel();
 }
Example #11
0
 public void Dispose()
 {
     settings.Key.Item.ValueChanged -= KeyPressed;
     taskHandler.Cancel();
 }