protected void UpdateText() { string str1 = (string)this.Header; object commandProperty = this.commandService.GetCommandProperty(this.command, "Text"); if (commandProperty != null) { str1 = (string)commandProperty; } this.Header = (object)str1; string str2 = string.Empty; if (this.displayShortcut) { KeyBinding[] keyBindingArray = this.commandService.GetCommandProperty(this.command, "Shortcuts") as KeyBinding[]; if (keyBindingArray != null) { str2 = CultureManager.GetShortcutText(keyBindingArray); } } this.InputGestureText = str2; }