Пример #1
0
        public void AddChild(IRenderer child, Point position)
        {
            this.RendererChildren.SafeAdd(child);

            if (!DesignTime.IsLocked(this))
            {
                OnAddedChild(child, position);
            }
        }
Пример #2
0
        public void RemoveChild(IRenderer child)
        {
            this.RendererChildren.SafeRemove(child);

            if (!DesignTime.IsLocked(this))
            {
                OnRemovedChild(child);
            }
        }
Пример #3
0
        private void InitializeSelector()
        {
            this.AddSelectedHandler(OnSelected);
            this.AddUnselectedHandler(OnUnselected);

            if (!DesignTime.IsLocked(this))
            {
                GroupSelector.Select(this, true);
            }
        }