/// <summary>
 /// Initialzies a new instance of the RepeatedColorConsoleStyle class.
 /// </summary>
 /// <param name="foregroundConsoleColor">The foreground console color.</param>
 /// <param name="foregroundRgbColor">The foreground RGB color.</param>
 /// <param name="backgroundConsoleColors">The background console colors.</param>
 /// <param name="backgroundRgbColors">The background RGB colors.</param>
 public RepeatedColorConsoleStyle(ConsoleColor foregroundConsoleColor, Color foregroundRgbColor, IEnumerable <ConsoleColor> backgroundConsoleColors, IEnumerable <Color> backgroundRgbColors)
 {
     ForegroundConsoleColors.Add(foregroundConsoleColor);
     ForegroundRgbColors.Add(foregroundRgbColor);
     if (backgroundConsoleColors != null)
     {
         BackgroundConsoleColors.AddRange(backgroundConsoleColors);
     }
     if (backgroundRgbColors != null)
     {
         BackgroundRgbColors.AddRange(backgroundRgbColors);
     }
 }
 /// <summary>
 /// Initialzies a new instance of the RepeatedColorConsoleStyle class.
 /// </summary>
 /// <param name="foregroundConsoleColors">The foreground console colors.</param>
 /// <param name="foregroundRgbColors">The foreground RGB colors.</param>
 /// <param name="backgroundConsoleColor">The background console colors.</param>
 /// <param name="backgroundRgbColor">The background RGB colors.</param>
 public RepeatedColorConsoleStyle(IEnumerable <ConsoleColor> foregroundConsoleColors, IEnumerable <Color> foregroundRgbColors, ConsoleColor?backgroundConsoleColor, Color?backgroundRgbColor)
 {
     if (foregroundConsoleColors != null)
     {
         ForegroundConsoleColors.AddRange(foregroundConsoleColors);
     }
     if (foregroundRgbColors != null)
     {
         ForegroundRgbColors.AddRange(foregroundRgbColors);
     }
     if (backgroundConsoleColor.HasValue)
     {
         BackgroundConsoleColors.Add(backgroundConsoleColor.Value);
     }
     if (backgroundRgbColor.HasValue)
     {
         BackgroundRgbColors.Add(backgroundRgbColor.Value);
     }
 }