示例#1
0
 public void UnregisterHotkey(MonitorSwitcherGUI parent)
 {
     hotkeyCtrl.Pressed -= parent.KeyHook_KeyUp;
     if (hotkeyCtrl.Registered)
     {
         hotkeyCtrl.Unregister();
     }
 }
示例#2
0
 public void RegisterHotkey(MonitorSwitcherGUI parent)
 {
     hotkeyCtrl.Pressed += parent.KeyHook_KeyUp;
     hotkeyCtrl.Register(parent, this);
 }