#region 返回选中节点的完整路径 NG
public static string str1 = "";
/// <summary>
/// 返回选中节点的完整路径
/// </summary>
/// <param name="treview">当前树</param>
/// <param name="node1">当前的节点</param>
/// <returns>完整路径</returns>
public static string selectNodePath(TreeView treview, TreeNode node1)
{
TreeNode tn = new TreeNode();
tn = node1.Parent;
if (tn == null)
{
str1 = str1.Insert(0, System.Windows.Forms.Application.StartupPath + "\\tree\\" + node1.Text.ToString());
}
else
{
str1 = str1.Insert(0, "\\" + node1.Text.ToString());
selectNodePath(treview, tn);
}
return str1;
}
#endregion