Exemplo n.º 1
0
 /// <summary>
 /// Inserts the item at the specified index.
 /// </summary>
 /// <param name="index">Index where the category gets inserted.</param>
 /// <param name="category">Category that gets inserted.</param>
 public override void InsertCategory(int index, ICategory category)
 {
     if (category is IColorCategory cc)
     {
         _categories.Insert(index, cc);
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Inserts the item at the specified index
        /// </summary>
        /// <param name="index"></param>
        /// <param name="category"></param>
        public override void InsertCategory(int index, ICategory category)
        {
            IColorCategory cc = category as IColorCategory;

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