示例#1
0
        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));
        }
示例#2
0
 private static string RemoveAccessKey(string input)
 {
     return(AccessKeyRemover.Convert(input, typeof(string), null, CultureInfo.CurrentUICulture) as string);
 }