Beispiel #1
0
        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;
        }
Beispiel #2
0
 public void AddChild(WindowObject child)
 {
     m_children.Add(child);
     child.Parent = this;
 }