Ejemplo n.º 1
0
        internal void addToLayer(Shapes.DiagramShape obj, bool undoing)
        {
            this.myObjects.Add(obj);
            obj.SetLayer(this, obj, undoing);
            this.InsertIntoCache(obj);
            RectangleF ef1 = obj.Bounds;

            this.LayerCollectionContainer.RaiseChanged(0x386, 0, obj, 0, null, DiagramLayer.NullRect, 0, this, ef1);
        }
Ejemplo n.º 2
0
        internal void changeLayer(Shapes.DiagramShape obj, DiagramLayer oldLayer, bool undoing)
        {
            oldLayer.RemoveFromCache(obj);
            int num1 = Shapes.DiagramShapeCollection.fastRemove(oldLayer.myObjects, obj);

            this.myObjects.Add(obj);
            obj.SetLayer(this, obj, undoing);
            this.InsertIntoCache(obj);
            RectangleF ef1 = obj.Bounds;

            this.LayerCollectionContainer.RaiseChanged(0x388, 0, obj, num1, oldLayer, ef1, -1, this, ef1);
        }
Ejemplo n.º 3
0
 internal void removeFromLayer(Shapes.DiagramShape obj, bool undoing)
 {
     try
     {
         obj.SetBeingRemoved(true);
         this.RemoveFromCache(obj);
         int        num1 = Shapes.DiagramShapeCollection.fastRemove(this.myObjects, obj);
         RectangleF ef1  = obj.Bounds;
         this.LayerCollectionContainer.RaiseChanged(0x387, 0, obj, num1, this, ef1, 0, null, DiagramLayer.NullRect);
     }
     finally
     {
         obj.SetLayer(null, obj, undoing);
         obj.SetBeingRemoved(false);
     }
 }