Esempio n. 1
0
		/// <summary>
		/// Assigns a new color group for the given type.
		/// </summary>
		public void SetColorGroup(ColorType colorType, ColorGroup colorGroup)
		{
			_colorGroups[colorType] = colorGroup;
		}
Esempio n. 2
0
		/// <summary>
		/// Gets the color group that stores colors for the given type.
		/// </summary>
		public ColorGroup GetColorGroup(ColorType colorType)
		{
			ColorGroup colorGroup = null;
			if (!_colorGroups.TryGetValue(colorType, out colorGroup))
			{
				colorGroup = new ColorGroup();
				_colorGroups[colorType] = colorGroup;
			}
			return colorGroup;
		}