private void SetShortcuts(string cmdId, ShortcutHandler shortcuts) { if (shortcuts != null) { this.SharedProps.Shortcut = shortcuts.GetShortcut(cmdId); } }
private void SetShortcuts(string cmdId, ShortcutHandler shortcuts) { if (shortcuts != null) { this.Shortcut = shortcuts.GetShortcut(cmdId); this.ShowShortcut = shortcuts.IsShortcutDisplayed(cmdId); } }
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 + "\""; }