예제 #1
0
 /// <summary>
 /// Attempts to decrease the index value of the specified category, and returns
 /// true if the move was successfull.
 /// </summary>
 /// <param name="category">The category to decrease the index of.</param>
 /// <returns>True, if the move was successfull.</returns>
 public override bool DecreaseCategoryIndex(ICategory category)
 {
     return(category is IColorCategory cc && _categories.DecreaseIndex(cc));
 }
예제 #2
0
        /// <summary>
        /// Attempts to decrease the index value of the specified category, and returns
        /// true if the move was successful.
        /// </summary>
        /// <param name="category">The category to decrease the index of</param>
        /// <returns></returns>
        public override bool DecreaseCategoryIndex(ICategory category)
        {
            IColorCategory cc = category as IColorCategory;

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