Esempio n. 1
0
 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);
         }
     }
 }