예제 #1
0
 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);
 }
예제 #2
0
        public static void DrawFlatBox(int topMargin, int height, ConsoleColor background)
        {
            int lastRow = height + topMargin + 1;

            for (int row = topMargin + 1; row < lastRow; row++)
            {
                ConsoleBasicDraw.FillRow(row, background);
            }
        }