Пример #1
0
        public override void Start()
        {
            IShapeHandle handle1 = this.PickResizeHandle(base.FirstInput.DocPoint);

            if (handle1 != null)
            {
                Shapes.DiagramShape obj1 = handle1.HandledObject;
                if (obj1 != null)
                {
                    base.CurrentObject = obj1;
                    base.StartTransaction();
                    if (base.Selection.GetHandleCount(obj1) > 0)
                    {
                        this.mySelectedObject = handle1.SelectedObject;
                        if (this.HidesSelectionHandles || !handle1.SelectedObject.ResizesRealtime)
                        {
                            this.mySelectionHidden = true;
                            obj1.RemoveSelectionHandles(base.Selection);
                        }
                    }
                    this.ResizeHandle   = handle1;
                    this.OriginalBounds = obj1.Bounds;
                    this.OriginalPoint  = handle1.DiagramShape.GetSpotLocation(1);
                }
            }
        }
Пример #2
0
 public override void Start()
 {
     base.Start();
     Shapes.DiagramShape obj1 = base.CurrentObject;
     if ((obj1 != null) && (base.Selection.GetHandleCount(obj1) > 0))
     {
         this.mySelectionHidden = true;
         obj1.RemoveSelectionHandles(base.Selection);
     }
     this.StartRelink(base.Link, base.OriginalEndPort, base.LastInput.DocPoint);
 }
Пример #3
0
        public void RemoveAllSelectionHandles()
        {
            CollectionEnumerator enumerator1 = this.Backwards.GetEnumerator();

            while (enumerator1.MoveNext())
            {
                Shapes.DiagramShape obj2 = enumerator1.Current.SelectionObject;
                if (obj2 != null)
                {
                    obj2.RemoveSelectionHandles(this);
                }
            }
        }
Пример #4
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);
                }
            }
        }