示例#1
0
        internal void RaiseHotKeyEvent()
        {
            HotkeyHandlerDelegate handler = HotKeyPressedEvent;

            if (handler != null && !Disabled)
            {
                handler(this, new HotKeyEventArgs(id));
            }
        }
示例#2
0
 public HotKey(int id, uint modifiers, uint vk, HotkeyHandlerDelegate HotKeyHandler)
     : this(id, modifiers, vk)
 {
     HotKeyPressedEvent += HotKeyHandler;
 }