Esempio n. 1
0
 private void ResetCatchToggle()
 {
     //hotkey.Unregister();
     if (hotkey.Registered)
     {
         hotkey.Unregister();
     }
     hotkey = new Hotkey();
     hotkey.Control = Properties.Settings.Default.Control;
     hotkey.Shift = Properties.Settings.Default.Shift;
     hotkey.Alt = Properties.Settings.Default.Alt;
     hotkey.KeyCode = (Keys)(byte)char.ToUpper(Properties.Settings.Default.Key[0]);
     hotkey.Pressed += delegate { Follow(); };
     hotkey.Register(this);
 }