Пример #1
0
 public void SetStyle(ConsoleStyle style)
 {
     if (style.ForegroundColor.HasValue)
         Console.ForegroundColor = style.ForegroundColor.Value;
     if (style.BackgroundColor.HasValue)
         Console.BackgroundColor = style.BackgroundColor.Value;
 }
Пример #2
0
 public void SetStyle(ConsoleStyle style)
 {
     if (style.ForegroundColor.HasValue)
     {
         Console.ForegroundColor = style.ForegroundColor.Value;
     }
     if (style.BackgroundColor.HasValue)
     {
         Console.BackgroundColor = style.BackgroundColor.Value;
     }
 }
Пример #3
0
 public void SetStyle(ConsoleStyle style)
 {
 }