ComponentFactory.Krypton.Toolkit.ViewComposite.Add C# (CSharp) Method

Add() public method

Append a view to the collection.
public Add ( ViewBase item ) : void
item ViewBase ViewBase reference.
return void
        public override void Add(ViewBase item)
        {
            // We do not allow null references in the collection
            if (item == null)
                throw new ArgumentNullException("Cannot add a null view into a composite view.");

            if (_views != null)
            {
                // Let type safe collection perform operation
                _views.Add(item);

                // Setup back reference
                item.Parent = this;
            }
        }