Example #1
0
 private void AddChild(Node child, int index)
 {
     if (child == null) return;
     if (child.Parent != null)
         child.parent.children.ReleaseChild(Array.IndexOf(child.parent.children._childrenArray, child));
     _childrenArray[index] = child;
     child.parent = _owner;
 }
Example #2
0
 public ChildrenCollection(Node owner, int length)
 {
     _owner = owner;
     _childrenArray = new Node[length];
 }