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); } }