コード例 #1
0
ファイル: MainForm.cs プロジェクト: Ytrog/RssBandit
 private void btnAddShortcut_Click(object sender, System.EventArgs e)
 {
     using (ShortcutEntryForm shortcutForm = new ShortcutEntryForm())
     {
         if (shortcutForm.ShowDialog(this) == DialogResult.OK)
         {
             _handler.AddKeyboardCombination(this.SelectedFilterCommand, shortcutForm.KeyCombination);
             //TODO: This is a kluge till I improve the data binding experience.
             cmbFilterCommands_SelectedIndexChanged(null, null);
         }
     }
 }