private void DoStop() { if (Started) { KListener.KeyDown -= DownHandler; KListener.KeyUp -= UpHandler; KListener.Dispose(); KListener = null; } }
protected override void OnExit(ExitEventArgs e) { base.OnExit(e); MainNotifier.Current.Dispose(); #region .Do(debug) #if !DEBUG KListener.Dispose(); #endif #endregion GrandcypherClient.Current.Proxy.Quit(); Settings.Current.Save(); }