예제 #1
0
 private void SetShortcuts(string cmdId, ShortcutHandler shortcuts)
 {
     if (shortcuts != null)
     {
         this.SharedProps.Shortcut = shortcuts.GetShortcut(cmdId);
     }
 }
예제 #2
0
 private void SetShortcuts(string cmdId, ShortcutHandler shortcuts)
 {
     if (shortcuts != null)
     {
         this.Shortcut     = shortcuts.GetShortcut(cmdId);
         this.ShowShortcut = shortcuts.IsShortcutDisplayed(cmdId);
     }
 }
예제 #3
0
파일: MainForm.cs 프로젝트: Ytrog/RssBandit
 private void cmbMenuCommands_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (_handler.IsDefined(SelectedMenuCommand))
     {
         this.cmbMenuShortcutValues.SelectedItem = _handler.GetShortcut(SelectedMenuCommand).ToString();
     }
     else
     {
         this.cmbMenuShortcutValues.SelectedIndex = 0;
     }
     this.lblCurrentMenuShortcut.Text = "\"" + SelectedMenuCommand + "\" is set to \"" + this.SelectedMenuShortcut + "\"";
 }