public void AddChild(BinaryTreeNode btn, NodeDirection nd) { btn.Parent = this; if(nd == NodeDirection.Left) this.LeftChild = btn; else this.RightChild = btn; }
public void AddChildren(BinaryTreeNode btnLeftNode, BinaryTreeNode btnRightNode) { AddChild(btnLeftNode, NodeDirection.Left); AddChild(btnRightNode, NodeDirection.Right); }