public void Dispose() { Menu.AutoDisableItem.PropertyChanged -= AutoDisableChanged; if (Menu.AutoDisableItem) { Handler?.Cancel(); } }
public void Dispose() { /// UpdateManager.Unsubscribe (OnUpdate); // UpdateManager.Unsubscribe (OnUpdate2); onUpdateHandler?.Cancel(); onUpdateHandler2?.Cancel(); }
public void Dispose() { killStealSettingsMenu.KillStealItem.PropertyChanged -= KillStealChanged; if (killStealSettingsMenu.KillStealItem) { handler?.Cancel(); } }
public void Dispose() { menu.KillStealItem.PropertyChanged -= KillStealChanged; if (menu.KillStealItem) { handler?.Cancel(); } }
public void Dispose() { menu.QlastHit.PropertyChanged -= QlastHitChanged; if (menu.QlastHit) { handler?.Cancel(); } }
public void Cancel() { if (!isRunning) { return; } TaskHandler?.Cancel(); isRunning = false; }
private void KillStealChanged(object sender, PropertyChangedEventArgs e) { if (killStealSettingsMenu.KillStealItem) { handler.RunAsync(); } else { handler.Cancel(); } }
private void QlastHitChanged(object sender, PropertyChangedEventArgs e) { if (menu.QlastHit) { handler.RunAsync(); } else { handler.Cancel(); } }
public void Uninstall() { _menu.IsAutoKillStealEnabled.PropertyChanged -= IsAutoKillStealChanged; _handler?.Cancel(); UpdateManager.Unsubscribe(Stop); }
protected override void OnDeactivate() { base.OnDeactivate(); ComboHandler.Cancel(); }
public void Dispose() { settings.Key.Item.ValueChanged -= KeyPressed; taskHandler.Cancel(); }