Example #1
0
 /**
  * Adds a child node. The node will be added last in the list of
  * children.
  *
  * @param child          the child node to add
  */
 public void AddChild(Node child)
 {
     if (child != null)
     {
         child.SetParent(this);
         children.Add(child);
     }
 }
Example #2
0
 /**
  * Adds a child node. The node will be added last in the list of
  * children.
  *
  * @param child          the child node to add
  */
 public void AddChild(Node child) {
     if (child != null) {
         child.SetParent(this);
         children.Add(child);
     }
 }