/// <summary> /// Intializes the specified <see cref="NuGenColorTable"/> according to the specified /// <see cref="NuGenColorScheme"/>. /// </summary> /// <param name="colorTable">Specifies the <see cref="NuGenColorTable"/> to initialize.</param> /// <param name="colorScheme">Specifies the <see cref="NuGenColorScheme"/> to use for intialization.</param> /// <exception cref="ArgumentNullException"> /// <paramref name="colorTable"/> is <see langword="null"/>. /// </exception> public static void InitializeColorTable(NuGenColorTable colorTable, NuGenColorScheme colorScheme) { if (colorTable == null) { throw new ArgumentNullException("colorTable"); } switch (colorScheme) { case NuGenColorScheme.Blue: { BuildBlueColorTable(colorTable); break; } case NuGenColorScheme.Gray: { BuildGrayColorTable(colorTable); break; } } }
/// <summary> /// Intializes the specified <see cref="NuGenColorTable"/> according to the specified /// <see cref="NuGenColorScheme"/>. /// </summary> /// <param name="colorTable">Specifies the <see cref="NuGenColorTable"/> to initialize.</param> /// <param name="colorScheme">Specifies the <see cref="NuGenColorScheme"/> to use for intialization.</param> /// <exception cref="ArgumentNullException"> /// <paramref name="colorTable"/> is <see langword="null"/>. /// </exception> public static void InitializeColorTable(NuGenColorTable colorTable, NuGenColorScheme colorScheme) { if (colorTable == null) { throw new ArgumentNullException("colorTable"); } switch (colorScheme) { case NuGenColorScheme.Blue: { BuildBlueColorTable(colorTable); break; } case NuGenColorScheme.Gray: { BuildGrayColorTable(colorTable); break; } } }
/// <summary> /// Initializes a new instance of the <see cref="NuGenColorTable"/> class. /// </summary> /// <param name="colorScheme">Specifies the <see cref="NuGenColorScheme"/> /// that is used to intialize this <see cref="NuGenColorTable"/>.</param> public NuGenColorTable(NuGenColorScheme colorScheme) { NuGenColorTableInitializer.InitializeColorTable(this, colorScheme); }
/// <summary> /// Initializes a new instance of the <see cref="NuGenColorTable"/> class. /// </summary> /// <param name="colorScheme">Specifies the <see cref="NuGenColorScheme"/> /// that is used to intialize this <see cref="NuGenColorTable"/>.</param> public NuGenColorTable(NuGenColorScheme colorScheme) { NuGenColorTableInitializer.InitializeColorTable(this, colorScheme); }