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) => hotkeyForm.InvokeSafe(() => UnregisterAllHotkeys(false)); Hotkeys = hotkeys; RegisterAllHotkeys(); ShowFailedHotkeys(); }
public HotkeyManager(HotkeyForm form) { hotkeyForm = form; hotkeyForm.HotkeyPress += hotkeyForm_HotkeyPress; hotkeyForm.FormClosed += (sender, e) => hotkeyForm.InvokeSafe(() => UnregisterAllHotkeys(false)); }