public void OnSetHooks(bool setHooks)
 {
     if (setHooks)
     {
         SetWindowsHook.Start(devices);
     }
     else
     {
         SetWindowsHook.Stop();
     }
 }
Esempio n. 2
0
 private void ChkHook_CheckedChanged(object sender, EventArgs e)
 {
     if (chkHook.Checked)
     {
         SetWindowsHook.Start(devices);
     }
     else
     {
         SetWindowsHook.Stop();
     }
 }