Ejemplo n.º 1
0
        protected void RefreshTree()
        {
            List <RsCollectionFolder> lFolders = CollectionProvider.RootFolder.GetSubFolders();

            foreach (RsCollectionFolder iFolder in lFolders)
            {
                RsCollectionTreeNode.CreateNode(iFolder, null, this);
            }
        }
Ejemplo n.º 2
0
        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;
            }
        }
Ejemplo n.º 3
0
        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;
        }