private void SetShortcuts(string cmdId, ShortcutManager shortcuts) { if (shortcuts != null) { this.Shortcut = shortcuts[cmdId]; this.ShowShortcut = shortcuts.IsDisplayed(cmdId); } }