private void TagTree_AfterExpand(object sender, TreeViewEventArgs e) { if (e.Node.Tag != null) { FileTreeView.FolderInformation fi = (FileTreeView.FolderInformation)e.Node.Tag; string currentPath = fi.FullPath; LoadSet(currentPath); } }
private string BuildPath(TreeNode node) { string path = ""; if (node != null) { if (node.Tag == null) { path = BuildPath(node.Parent) + "\\" + node.Text; } else { FileTreeView.FolderInformation fi = (FileTreeView.FolderInformation)node.Tag; path = fi.FullPath; } } return(path); }