private void PopulateTreeViewWorkspace(TreeNode currentNode) { TreeNode rootNode = GetFirstLevelNode(currentNode); char[] cachedpathseparator = "/".ToCharArray(); string[] paths = _ProjectManager.GetAllWorkplaceRelativePaths(currentNode.Name, false); foreach (string path in paths) { if (null == currentNode.Nodes[currentNode.Name + path]) { string nodeName = path; if (nodeName.EndsWith("/")) { nodeName = nodeName.Substring(0, nodeName.Length - 1); } currentNode.Nodes.Add(currentNode.Name + path, nodeName); } } }