Esempio n. 1
0
 private static void PrintCommand(int maxWidth, CommandAttribute commandAttribute)
 {
     // Write out the command name left justified with the max command's width's padding
     Console.Write(" {0, -" + maxWidth + "}   ", GetCommandText(commandAttribute));
     // Starting index of the description
     int descriptionPadding = maxWidth + 4;
     PrintJustified(descriptionPadding, commandAttribute.Description);
 }
Esempio n. 2
0
 private static string GetCommandText(CommandAttribute commandAttribute)
 {
     return commandAttribute.CommandName + GetAltText(commandAttribute.AltName);
 }
Esempio n. 3
0
 private static string GetCommandText(CommandAttribute commandAttribute)
 {
     return(commandAttribute.CommandName + GetAltText(commandAttribute.AltName));
 }