private void btnClearAllHotKeys_Click(object sender, EventArgs e) { HotKeyManager.ClearAll(); RefreshGrid(); MessageBox.Show("Hotkeys Cleared!"); }
private void ButtonHotKey_Click(object sender, EventArgs e) { Program.Settings.HotKeys = ""; HotKeyManager.ClearAll(); var hkf = new HotKeyForm(); hkf.ShowDialog(this); }
public HotKeyForm() { InitializeComponent(); _hotkey = new HotKey(); HotKeyManager.ClearAll(); // Keep in mind how the user wants the devices shown if (Program.Settings.ShowDisabledDevices) { _deviceStateFilter |= DeviceState.Disabled; } if (Program.Settings.ShowDisconnectedDevices) { _deviceStateFilter |= DeviceState.Unplugged; } }