/// <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)); }
/// <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)); }