private void btnAddHotKey_Click(object sender, EventArgs e) { var hkf = new HotKeyForm(); hkf.ShowDialog(this); RefreshGrid(); }
private void ButtonHotKey_Click(object sender, EventArgs e) { Program.Settings.HotKeys = ""; HotKeyManager.ClearAll(); var hkf = new HotKeyForm(); hkf.ShowDialog(this); }
private void btnEditHotKey_Click(object sender, EventArgs e) { if (hotKeyBindingSource.Current != null) { var hkf = new HotKeyForm((HotKey)hotKeyBindingSource.Current); hkf.ShowDialog(this); RefreshGrid(); } }
private void setHotKeyToolStripMenuItem_Click(object sender, EventArgs e) { HotKeyForm hkf = null; foreach (HotKey hk in HotKeyManager.HotKeys) { if (hk.DeviceID == SelectedRecordingDevice.ID) { hkf = new HotKeyForm(hk); hkf.ShowDialog(this); return; } } var newHotKey = new HotKey(); newHotKey.DeviceID = SelectedRecordingDevice.ID; hkf = new HotKeyForm(newHotKey); hkf.ShowDialog(this); }
private void setHotKeyToolStripMenuItem_Click(object sender, EventArgs e) { if (SelectedRecordingDevice == null) { return; } var hotkey = HotKeyManager.HotKeys.FirstOrDefault(x => x.DeviceId == SelectedRecordingDevice.Id); if (hotkey == null) { hotkey = new HotKey(); hotkey.DeviceId = SelectedRecordingDevice.Id; } var hkf = new HotKeyForm(hotkey); hkf.ShowDialog(this); }
private void btnEditHotKey_Click(object sender, EventArgs e) { if (hotKeyBindingSource.Current != null) { var hkf = new HotKeyForm((HotKey) hotKeyBindingSource.Current); hkf.ShowDialog(this); RefreshGrid(); } }
private void setHotKeyToolStripMenuItem_Click(object sender, EventArgs e) { if (SelectedRecordingDevice == null) return; var hotkey = HotKeyManager.HotKeys.FirstOrDefault(x => x.DeviceId == SelectedRecordingDevice.Id); if (hotkey == null) { hotkey = new HotKey(); hotkey.DeviceId = SelectedRecordingDevice.Id; } var hkf = new HotKeyForm(hotkey); hkf.ShowDialog(this); }