Ejemplo n.º 1
0
 /// <summary>
 /// Attempts to increase the position of the specified category, and returns true
 /// if the index increase was successful.
 /// </summary>
 /// <param name="category">The category to increase the position of.</param>
 /// <returns>Boolean, true if the item's position was increased.</returns>
 public override bool IncreaseCategoryIndex(ICategory category)
 {
     return(category is IColorCategory cc && _categories.IncreaseIndex(cc));
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Attempts to increase the position of the specified category, and returns true
        /// if the index increase was successful.
        /// </summary>
        /// <param name="category">The category to increase the position of</param>
        /// <returns>Boolean, true if the item's position was increased</returns>
        public override bool IncreaseCategoryIndex(ICategory category)
        {
            IColorCategory cc = category as IColorCategory;

            return(cc != null && _categories.IncreaseIndex(cc));
        }