Exemplo n.º 1
0
 public void Dispose()
 {
     if (Hooker != null)
     {
         Hooker.Dispose();
     }
 }
Exemplo n.º 2
0
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     Model.CloseStatusMessageWindow();
     Model.SaveSettings();
     HotKeyHook.Dispose(); // Ensure that we close all hooks or we will randomly crash during application shutdown when managed code is tried to run although the clr has been already shut down.
     Model.Dispose();
 }