protected void RefreshTree() { List <RsCollectionFolder> lFolders = CollectionProvider.RootFolder.GetSubFolders(); foreach (RsCollectionFolder iFolder in lFolders) { RsCollectionTreeNode.CreateNode(iFolder, null, this); } }
public void AddChild(string aChildName) { Expand(); if (CollectionItem is RsCollectionFolder) { RsCollectionFolder lFolder = ((RsCollectionFolder)CollectionItem).AddSubFolder( ((RsCollectionFolder)CollectionItem).GetNextName(aChildName) ); RsCollectionTreeNode lNode = RsCollectionTreeNode.CreateNode(lFolder, this, Owner); lNode.DeleteOnCancel = true; lNode.Editing = true; } }
public void Expand() { if (Expanded) { return; } Children = new List <RsCollectionTreeNode>(); if (CollectionItem is RsCollectionFolder) { RsCollectionFolder lFolder = (RsCollectionFolder)CollectionItem; List <RsCollectionFolder> lChildren = lFolder.GetSubFolders(); foreach (RsCollectionItem iItem in lChildren) { RsCollectionTreeNode.CreateNode(iItem, this, Owner); } } Expanded = true; }