コード例 #1
0
ファイル: PolygonScheme.cs プロジェクト: rprouse/DotSpatial
 /// <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);
     }
 }
コード例 #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);
            }
        }