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 + "\""; }