Inheritance: System.Windows.Forms.Form
コード例 #1
0
 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);
 }
コード例 #2
0
ファイル: HotKeys.cs プロジェクト: jnnpsubm/YAR-Auth
 private void button1_Click(object sender, EventArgs e)
 {
     // Create new hotkey
     _newHotkey = new NewHotkey();
     _newHotkey.ShowDialog(this);
 }
コード例 #3
0
 public CatchHotkey(NewHotkey parent)
 {
     InitializeComponent();
     _parent = parent;
     _hotkey = parent.HotkeyNew;
 }
コード例 #4
0
 public CatchHotkey(NewHotkey parent)
 {
     InitializeComponent();
     _parent = parent;
     _hotkey = parent.HotkeyNew;
 }