private string GetDisplayTextFromCTMCommand(CommandId commandId) { CommandTable.Command command = this.commandIdToCTMCommandMap[commandId]; string text = command.ItemText.ButtonText ?? command.ItemText.CommandWellText; return((string)AccessKeyRemovingConverter.Convert(text, typeof(string), null, CultureInfo.CurrentUICulture)); }
private static string RemoveAccessKey(string input) { return(AccessKeyRemover.Convert(input, typeof(string), null, CultureInfo.CurrentUICulture) as string); }