/// <summary> /// Assigns a new color group for the given type. /// </summary> public void SetColorGroup(ColorType colorType, ColorGroup colorGroup) { _colorGroups[colorType] = colorGroup; }
/// <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; }