public void SelectElement(DrawableContainer element)
 {
     if (selectedElements.Contains(element))
     {
         return;
     }
     selectedElements.Add(element);
     element.ShowGrippers();
     element.Selected = true;
     MovingElementChanged(this, selectedElements);
     Invalidate();
 }
예제 #2
0
        public void SelectElement(IDrawableContainer container)
        {
            DrawableContainer element = container as DrawableContainer;

            if (!selectedElements.Contains(element))
            {
                selectedElements.Add(element);
                element.ShowGrippers();
                element.Selected = true;
                FieldAggregator.BindElement(element);
                if (MovingElementChanged != null)
                {
                    MovingElementChanged(this, selectedElements);
                }
                element.Invalidate();
            }
        }
예제 #3
0
 public void SelectElement(DrawableContainer element)
 {
     if (selectedElements.Contains(element)) return;
     selectedElements.Add(element);
     element.ShowGrippers();
     element.Selected = true;
     MovingElementChanged(this, selectedElements);
     Invalidate();
 }