//设置父节点,或者父节点改变刷新父节点路径 public void SetParentNode(ProjectTreeNode parentNode) { ParentNode = parentNode; if (this.ParentNode == null) { this.ParentNode = null; } else { this.ParentPath = this.ParentNode.getPath(); } }
public ProjectTreeLeafNode(string name, ProjectTreeNode parentNode, long handleValue) : base(name, parentNode) { this.HandleValue = handleValue; this.ParentNode = parentNode; }
public ProjectTreeNode(string name, ProjectTreeNode parentNode) { this.Name = name; SetParentNode(parentNode); this.Children = new List <ProjectTreeNode>(); }