private static void OnHotKeyPressed(HotKeyEventArgs e) { if (GlobalHotkeyManager.HotKeyPressed != null) { GlobalHotkeyManager.HotKeyPressed(null, e); } }
protected override void WndProc(ref Message m) { if (m.Msg == WM_HOTKEY) { HotKeyEventArgs e = new HotKeyEventArgs(m.LParam); GlobalHotkeyManager.OnHotKeyPressed(e); } base.WndProc(ref m); }