/// <summary> /// Adds a new scheme, assuming that the new scheme is the correct type. /// </summary> /// <param name="category">The category to add.</param> public override void AddCategory(ICategory category) { if (category is IPointCategory pc) { _categories.Add(pc); } }
/// <summary> /// Adds a new scheme, assuming that the new scheme is the correct type. /// </summary> /// <param name="category">The category to add.</param> public override void AddCategory(ICategory category) { IPointCategory pc = category as IPointCategory; if (pc != null) { _categories.Add(pc); } }