public void DeselectElement(DrawableContainer element)
 {
     element.HideGrippers();
     element.Selected = false;
     selectedElements.Remove(element);
     MovingElementChanged(this, selectedElements);
 }
 public void DeselectAllElements()
 {
     while (selectedElements.Count > 0)
     {
         DrawableContainer element = selectedElements[0];
         element.HideGrippers();
         element.Selected = false;
         selectedElements.Remove(element);
     }
     MovingElementChanged(this, selectedElements);
 }
Example #3
0
        public void DeselectElement(IDrawableContainer container)
        {
            DrawableContainer element = container as DrawableContainer;

            element.HideGrippers();
            element.Selected = false;
            selectedElements.Remove(element);
            FieldAggregator.UnbindElement(element);
            if (MovingElementChanged != null)
            {
                MovingElementChanged(this, selectedElements);
            }
        }
Example #4
0
 public void DeselectAllElements()
 {
     if (HasSelectedElements())
     {
         while (selectedElements.Count > 0)
         {
             DrawableContainer element = selectedElements[0];
             element.Invalidate();
             element.HideGrippers();
             element.Selected = false;
             selectedElements.Remove(element);
             FieldAggregator.UnbindElement(element);
         }
         if (MovingElementChanged != null)
         {
             MovingElementChanged(this, selectedElements);
         }
     }
 }
 public void DeselectElement(DrawableContainer element)
 {
     element.HideGrippers();
     element.Selected = false;
     selectedElements.Remove(element);
     MovingElementChanged(this, selectedElements);
 }