示例#1
0
        public void AddElement(InterfaceObject element)
        {
            _elements.Add(element);
            _container.AddChild(element.container);

            if (activated)
            {
                element.OnActivate();
            }
        }
示例#2
0
        public void AddElement(InterfaceObject element)
        {
            if (visible)
            {
                element.OnActivate();
            }

            element._parent = this;

            _elements.Add(element);
            _container.AddChild(element.container);
        }