Exemplo n.º 1
0
 /// <summary>
 /// Removes the specified category.
 /// </summary>
 /// <param name="category">The category to remove.</param>
 public override void RemoveCategory(ICategory category)
 {
     if (category is IPolygonCategory pc)
     {
         _categories.Remove(pc);
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Removes the specified category
        /// </summary>
        /// <param name="category">The category to remove</param>
        public override void RemoveCategory(ICategory category)
        {
            IPolygonCategory pc = category as IPolygonCategory;

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