Пример #1
0
        /// <inheritdoc/>
        public void AddChild(IFilter filter)
        {
            if (filter.FilterContainer_ID.HasValue)
            {
                if (filter.FilterContainer_ID == ID)
                {
                    return; //It's already a child of us
                }
                else
                {
                    throw new NotSupportedException("Filter " + filter + " is already a child of nother container (ID=" + filter.FilterContainer_ID + ")");
                }
            }

            _manager.AddChild(this, filter);
        }