Exemplo n.º 1
0
        protected override void OnClosing(CancelEventArgs e)
        {
            if (!close)
            {
                e.Cancel = true;
                this.Hide();
            }
            else
            {
                HotkeysManager.ShutdownSystemHook();
            }

            base.OnClosing(e);
        }
Exemplo n.º 2
0
 private void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     HotkeysManager.ShutdownSystemHook();
 }
Exemplo n.º 3
0
 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();
 }
Exemplo n.º 4
0
 //OnExit
 void MainWindow_Closed(object sender, EventArgs e)
 {
     HotkeysManager.ShutdownSystemHook();
 }