Exemplo n.º 1
0
 public static BrowserListItem GetBrowserListItem(string folder)
 {
     return(new BrowserListItem(ProjectFolder.ConvertFolderNameToDisplayFolderLastPart(folder), false, new ProjectFolder(folder), false)
     {
         Image = ProjectBrowseItemImage.OpenFolder
     });
 }
        private void CreateDirectoryNode(string dir, NGTreeNode node)
        {
            var subfolders = Current.Project.Folders.GetSubfoldersAsStringList(dir, false);

            subfolders.Sort();
            foreach (var subfolder in subfolders)
            {
                var subnode = new NGTreeNode(ProjectFolder.ConvertFolderNameToDisplayFolderLastPart(subfolder))
                {
                    Tag        = subfolder,
                    IsExpanded = true
                };

                node.Nodes.Add(subnode);
                CreateDirectoryNode(subfolder, subnode);
            }
        }