Ejemplo n.º 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 IPointCategory pc)
     {
         _categories.Insert(index, pc);
     }
 }
Ejemplo n.º 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)
        {
            IPointCategory pc = category as IPointCategory;

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