Пример #1
0
 /// <summary>
 /// Adds a new scheme, assuming that the new scheme is the correct type.
 /// </summary>
 /// <param name="category">The category to add.</param>
 public override void AddCategory(ICategory category)
 {
     if (category is ILineCategory lc)
     {
         _categories.Add(lc);
     }
 }
Пример #2
0
        /// <summary>
        /// Adds a new scheme, assuming that the new scheme is the correct type.
        /// </summary>
        /// <param name="category">The category to add</param>
        public override void AddCategory(ICategory category)
        {
            ILineCategory lc = category as ILineCategory;

            if (lc != null)
            {
                _categories.Add(lc);
            }
        }