Exemplo n.º 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();
        }
Exemplo n.º 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();
        }
        public HotkeyManager(HotkeyForm form, List <HotkeySettings> hotkeys)
        {
            hotkeyForm              = form;
            hotkeyForm.HotkeyPress += hotkeyForm_HotkeyPress;
            hotkeyForm.FormClosed  += (sender, e) => UnregisterAllHotkeys(false);

            Hotkeys = hotkeys;

            if (Hotkeys.Count == 0)
            {
                ResetHotkeys();
            }
            else
            {
                RegisterAllHotkeys();
            }

            ShowFailedHotkeys();
        }
Exemplo n.º 4
0
 public HotkeyManager(HotkeyForm form)
 {
     hotkeyForm              = form;
     hotkeyForm.HotkeyPress += hotkeyForm_HotkeyPress;
     hotkeyForm.FormClosed  += (sender, e) => hotkeyForm.InvokeSafe(() => UnregisterAllHotkeys(false));
 }
Exemplo n.º 5
0
 public HotkeyManager(HotkeyForm form)
 {
     hotkeyForm = form;
     hotkeyForm.HotkeyPress += hotkeyForm_HotkeyPress;
     hotkeyForm.FormClosed += (sender, e) => hotkeyForm.InvokeSafe(() => UnregisterAllHotkeys(false));
 }