Пример #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;
        }
Пример #2
0
 public void AddChild(WindowObject child)
 {
     m_children.Add(child);
     child.Parent = this;
 }