public override void Write() { var colors = ConsoleFunctions.ChangeColors(Message.bcolor, Message.fcolor); Console.SetCursorPosition(X, Y); Console.Write(output.GetLine(Y, X, X + Width)); Console.SetCursorPosition(0, 0); ConsoleFunctions.ChangeColors(colors.Item1, colors.Item2); }
public override void Write() { WritePart(0, DisplayStartPosition); var lastColors = ConsoleFunctions.ChangeColors( DisplayBackColor, DisplayForeColor); WritePart(DisplayStartPosition, Width - DisplayStartPosition - 1); ConsoleFunctions.ChangeColors( lastColors.Item1, lastColors.Item2); Console.SetCursorPosition(0, 0); }