Esempio n. 1
0
 public virtual void DoResizing(InputState evttype)
 {
     if (base.CurrentObject != null)
     {
         InputEventArgs       args1  = base.LastInput;
         DiagramViewSnapStyle style1 = base.View.GridSnapResize;
         if ((style1 == DiagramViewSnapStyle.Jump) || ((style1 == DiagramViewSnapStyle.After) && (evttype == InputState.Finish)))
         {
             args1.DocPoint  = base.View.FindNearestGridPoint(args1.DocPoint);
             args1.ViewPoint = base.View.ConvertDocToView(args1.DocPoint);
         }
         Shapes.DiagramShape obj1 = base.CurrentObject;
         RectangleF          ef1  = obj1.Bounds;
         obj1.DoResize(base.View, this.OriginalBounds, args1.DocPoint, this.ResizeHandle.HandleID, evttype, this.MinimumSize, this.MaximumSize);
         if ((!this.mySelectionHidden && (ef1 == obj1.Bounds)) && (obj1.Document == base.View.Document))
         {
             obj1.AddSelectionHandles(base.Selection, this.mySelectedObject);
         }
     }
 }