protected override void OnClosing(CancelEventArgs e) { if (!close) { e.Cancel = true; this.Hide(); } else { HotkeysManager.ShutdownSystemHook(); } base.OnClosing(e); }
private void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e) { HotkeysManager.ShutdownSystemHook(); }
private void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e) { // Need to shutdown the hook. idk what happens if // you dont, but it might cause a memory leak. HotkeysManager.ShutdownSystemHook(); }
//OnExit void MainWindow_Closed(object sender, EventArgs e) { HotkeysManager.ShutdownSystemHook(); }