private string BuildFullRow(string title, string definition) { title = ConsoleBasicDraw.RepresentObjectAsString(title, titleWidth); string paddingFillString = this.BuildPaddingFillString(title, definition); return(String.Concat(title, paddingFillString, definition)); }
public static void DrawFlatText(string message, int topMargin, ConsoleColor background, ConsoleColor foreground) { ConsoleBasicDraw.FillRow(topMargin, background); message = ConsoleBasicDraw.RepresentObjectAsString(message, Console.WindowWidth); ConsoleBasicDraw.DrawText(message, 1, topMargin, background, foreground); }
private string BuildDefinitionValue(params string[] arguments) { string definition = String.Join(", ", arguments); return(ConsoleBasicDraw.RepresentObjectAsString(definition, definitionWidth)); }