/// <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;
				}
			}
		}
Exemplo n.º 2
0
        /// <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;
            }
            }
        }
Exemplo n.º 3
0
 /// <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);
 }
Exemplo n.º 4
0
		/// <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);
		}