Exemple #1
0
 /// <summary>
 /// Removes the specified category.
 /// </summary>
 /// <param name="category">The category to insert.</param>
 public override void RemoveCategory(ICategory category)
 {
     if (category is IPointCategory pc)
     {
         _categories.Remove(pc);
     }
 }
Exemple #2
0
        /// <summary>
        /// Removes the specified category.
        /// </summary>
        /// <param name="category">The category to insert.</param>
        public override void RemoveCategory(ICategory category)
        {
            IPointCategory pc = category as IPointCategory;

            if (pc != null)
            {
                _categories.Remove(pc);
            }
        }