Ejemplo n.º 1
0
 } public void RegisterHotKey()
 {
     if (Key == Keys.None)
     {
         return;
     }
     if (_isKeyRegistered)
     {
         UnregisterHotKey();
     }
     _isKeyRegistered = HotKeyWinApi.RegisterHotKey(_handle, _id, KeyModifier, Key); if (!_isKeyRegistered)
     {
         ;
     }
 }
Ejemplo n.º 2
0
 public void UnregisterHotKey()
 {
     _isKeyRegistered = !HotKeyWinApi.UnregisterHotKey(_handle, _id);
 }