private void button2_Click(object sender, EventArgs e) { // Edit hotkey if (dataGridView1.CurrentRow == null || dataGridView1.CurrentRow.Index < 0) return; var hk = Settings.Default.HotKeys.FirstOrDefault(x => x.HookId == (int)dataGridView1.Rows[dataGridView1.CurrentRow.Index].Cells["HookId"].Value); if (hk == null) return; _newHotkey = new NewHotkey(hk); _newHotkey.ShowDialog(this); }
private void button1_Click(object sender, EventArgs e) { // Create new hotkey _newHotkey = new NewHotkey(); _newHotkey.ShowDialog(this); }
public CatchHotkey(NewHotkey parent) { InitializeComponent(); _parent = parent; _hotkey = parent.HotkeyNew; }