示例#1
0
 /// <summary>
 /// Removes the specified category.
 /// </summary>
 /// <param name="category">Category that gets removed.</param>
 public override void RemoveCategory(ICategory category)
 {
     if (category is IColorCategory cc)
     {
         _categories.Remove(cc);
     }
 }
示例#2
0
        /// <summary>
        /// Removes the specified category
        /// </summary>
        /// <param name="category"></param>
        public override void RemoveCategory(ICategory category)
        {
            IColorCategory cc = category as IColorCategory;

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