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