예제 #1
0
        public void AddAllSelectionHandles()
        {
            CollectionEnumerator enumerator1 = this.GetEnumerator();

            while (enumerator1.MoveNext())
            {
                Shapes.DiagramShape obj1 = enumerator1.Current;
                Shapes.DiagramShape obj2 = obj1.SelectionObject;
                if (obj2 != null)
                {
                    if (obj1.CanView())
                    {
                        obj2.AddSelectionHandles(this, obj1);
                        continue;
                    }
                    obj2.RemoveSelectionHandles(this);
                }
            }
        }
예제 #2
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);
         }
     }
 }
예제 #3
0
 public override void Stop()
 {
     if (this.mySelectionHidden)
     {
         this.mySelectionHidden = false;
         Shapes.DiagramShape obj1 = base.CurrentObject;
         if ((obj1 != null) && (obj1.Document == base.View.Document))
         {
             if (!base.Selection.Contains(base.Link.DiagramShape))
             {
                 base.Selection.Add(base.Link.DiagramShape);
             }
             else
             {
                 obj1.AddSelectionHandles(base.Selection, base.Link.DiagramShape);
             }
         }
     }
     base.CurrentObject = null;
     base.Stop();
 }
예제 #4
0
 public override void Stop()
 {
     base.View.DrawXorBox(new Rectangle(), false);
     if (this.mySelectionHidden)
     {
         this.mySelectionHidden = false;
         Shapes.DiagramShape obj1 = base.CurrentObject;
         if ((obj1 != null) && (obj1.Document == base.View.Document))
         {
             if (!base.Selection.Contains(this.mySelectedObject))
             {
                 base.Selection.Add(this.mySelectedObject);
             }
             else
             {
                 obj1.AddSelectionHandles(base.Selection, this.mySelectedObject);
             }
         }
     }
     this.mySelectedObject = null;
     base.CurrentObject    = null;
     this.ResizeHandle     = null;
     base.StopTransaction();
 }