/// <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); }
/// <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); }