Пример #1
0
 internal void ReplaceChild(NodeBase oldchild, NodeBase newchild)
 {
     int i = _children.IndexOf(oldchild);
     _children.Insert(i, newchild);
     _children.Remove(oldchild);
     oldchild.Parent = null;
     newchild.Parent = this;
 }
Пример #2
0
 internal void AddChild(NodeBase child)
 {
     _children.Add(child);
     child.Parent = this;
 }