public void SetStyle(ConsoleStyle style) { if (style.ForegroundColor.HasValue) Console.ForegroundColor = style.ForegroundColor.Value; if (style.BackgroundColor.HasValue) Console.BackgroundColor = style.BackgroundColor.Value; }
public void SetStyle(ConsoleStyle style) { if (style.ForegroundColor.HasValue) { Console.ForegroundColor = style.ForegroundColor.Value; } if (style.BackgroundColor.HasValue) { Console.BackgroundColor = style.BackgroundColor.Value; } }
public void SetStyle(ConsoleStyle style) { }