예제 #1
0
 public override string FormatMnemonic(Operation operation)
 {
     var attribute = operation.GetAttribute<DescriptionAttribute>();
     if (attribute != null)
     {
         string description = attribute.Description;
         return string.Format("<span title=\"{2}: {0}\">{1}</span>",
             attribute.Description.EscapeXml(),
             operation.ToString().ToLowerInvariant(),
             operation);
     }
     return base.FormatMnemonic(operation);
 }