Load() public method

Loads the collection of models into the list.
public Load ( IEnumerable items ) : void
items IEnumerable A collection models.
return void
        public ListTreePanel(ListTreeView parentList, ITreeNode node) : base(Html.CreateDiv())
        {
            // Store value.
            this.parentList = parentList;
            this.node = node;

            // Insert HTML container.
            Hide();
            Css.AbsoluteFill(Container);

            // Create list.
            listView = new ListView(Container);
            listView.Load(node.Children);

            // Wire up events.
            GlobalEvents.HorizontalPanelResized += OnHorizontalPanelResized;
            node.ChildSelectionChanged += OnChildSelectionChanged;
            node.AddedChild += OnAddedChild;
            node.RemovedChild += OnRemovedChild;
            if (node.Parent != null) node.Parent.RemovingChild += OnParentRemovingChild;

            // Finish up.
            SyncWidth();
        }