Exemplo n.º 1
0
 /// <summary>
 /// 构造
 /// </summary>
 /// <param name="customNodes">子节点集</param>
 /// <param name="id">ID</param>
 /// <param name="type">类型</param>
 /// <param name="name">名称</param>
 /// <param name="array">排序</param>
 /// <param name="obj">对象</param>
 public CustomNode(CustomNodes customNodes, int id, string type, string name, int array = 0, object obj = null)
 {
     _customNodes            = customNodes;
     _customNodes.ParentNode = this;
     _id    = id;
     _type  = type;
     _name  = name;
     _array = array;
     _obj   = obj;
 }
Exemplo n.º 2
0
 /// <summary>
 /// 构造
 /// </summary>
 /// <param name="id">ID</param>
 /// <param name="type">类型</param>
 /// <param name="name">名称</param>
 /// <param name="array">排序</param>
 /// <param name="obj">对象</param>
 public CustomNode(int id, string type, string name, int array = 0, object obj = null)
 {
     _customNodes = new CustomNodes {
         ParentNode = this
     };
     _id    = id;
     _type  = type;
     _name  = name;
     _array = array;
     _obj   = obj;
 }