Beispiel #1
0
 private void Populate(FolderTreeNode parentNode)
 {
     foreach (Folder folder in parentNode.Folder.SubFolders)
     {
         FolderTreeNode node = new FolderTreeNode(folder);
         Populate(node);
         parentNode.Nodes.Add(node);
     }
     parentNode.Expand();
 }
Beispiel #2
0
        public void Populate(Folder rootFolder)
        {
            BeginUpdate();
            Nodes.Clear();
            FolderTreeNode rootNode = new FolderTreeNode(rootFolder);

            Populate(rootNode);
            Nodes.Add(rootNode);
            SelectedNode = rootNode;
            rootNode.EnsureVisible();
            EndUpdate();
        }