示例#1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="item"></param>
        /// <param name="parent"></param>
        protected void AddItem(LibraryItem item, LibraryItemNode parent)
        {
            LibraryItemNode node = new LibraryItemNode(item);

            foreach (LibraryItem subItem in item.GetLibraryItems(true))
            {
                this.AddItem(subItem, node);
            }
            parent.Nodes.Add(node);
        }
示例#2
0
        /// <summary>
        /// Adds Node
        /// </summary>
        /// <param name="item"></param>
        protected void AddItem(LibraryItem item)
        {
            LibraryItemNode node = new LibraryItemNode(item);

            foreach (LibraryItem subItem in item.GetLibraryItems(true))
            {
                this.AddItem(subItem, node);
            }
            this.libTree.Nodes.Add(node);
        }