public void AddChild(WindowObject child) { var parentContainer = child.Parent as IWindowContainer; if (parentContainer != null && parentContainer != this) { parentContainer.RemoveChild(child); } m_children.Add(child); child.Parent = this; }
public void AddChild(WindowObject child) { m_children.Add(child); child.Parent = this; }