Example #1
0
 /// <summary>
 /// Inserts the category at the specified index.
 /// </summary>
 /// <param name="index">The integer index where the category should be inserted.</param>
 /// <param name="category">The category to insert.</param>
 public override void InsertCategory(int index, ICategory category)
 {
     if (category is IPolygonCategory pc)
     {
         _categories.Insert(index, pc);
     }
 }
Example #2
0
        /// <summary>
        /// Inserts the category at the specified index
        /// </summary>
        /// <param name="index">The integer index where the category should be inserted</param>
        /// <param name="category">The category to insert</param>
        public override void InsertCategory(int index, ICategory category)
        {
            IPolygonCategory pc = category as IPolygonCategory;

            if (pc != null)
            {
                _categories.Insert(index, pc);
            }
        }