예제 #1
0
        public HotkeyManager(HotkeyForm form, List<HotkeySettings> hotkeys)
        {
            hotkeyForm = form;
            hotkeyForm.HotkeyPress += hotkeyForm_HotkeyPress;
            hotkeyForm.FormClosed += (sender, e) => hotkeyForm.InvokeSafe(() => UnregisterAllHotkeys(false));

            Hotkeys = hotkeys;

            RegisterAllHotkeys();
            ShowFailedHotkeys();
        }
예제 #2
0
        public HotkeyManager(HotkeyForm form, List <HotkeySettings> hotkeys)
        {
            hotkeyForm              = form;
            hotkeyForm.HotkeyPress += hotkeyForm_HotkeyPress;
            hotkeyForm.FormClosed  += (sender, e) => hotkeyForm.InvokeSafe(() => UnregisterAllHotkeys(false));

            Hotkeys = hotkeys;

            RegisterAllHotkeys();
            ShowFailedHotkeys();
        }
예제 #3
0
 public HotkeyManager(HotkeyForm form)
 {
     hotkeyForm              = form;
     hotkeyForm.HotkeyPress += hotkeyForm_HotkeyPress;
     hotkeyForm.FormClosed  += (sender, e) => hotkeyForm.InvokeSafe(() => UnregisterAllHotkeys(false));
 }
예제 #4
0
 public HotkeyManager(HotkeyForm form)
 {
     hotkeyForm = form;
     hotkeyForm.HotkeyPress += hotkeyForm_HotkeyPress;
     hotkeyForm.FormClosed += (sender, e) => hotkeyForm.InvokeSafe(() => UnregisterAllHotkeys(false));
 }