//导出所有父节点 private static void ExportAllParents2CSV(StreamWriter mysw, StringBuilder allLines, MyTreeNode node) { WindowView.notify.SetStatusMessage("正在导出该节点的所有父节点。。。"); List <string> parentNodes = MyTrees.FindToRootAllList(node.TopId); parentNodes.Reverse(); allRow += parentNodes.Count; for (int i = 0; i < parentNodes.Count; i++) { mysw.WriteLine(parentNodes[i]); } }