예제 #1
0
        public override void ElementDeleting(ElementDeletingEventArgs e)
        {
            if (e.ModelElement.Store.InSerializationTransaction)
            {
                return;
            }

            PersonShape shape = e.ModelElement as PersonShape;

            DiagramLayouter.Layout(shape.Diagram);
        }
예제 #2
0
        public override void ElementAdded(Microsoft.VisualStudio.Modeling.ElementAddedEventArgs e)
        {
            if (e.ModelElement.Store.InSerializationTransaction)
            {
                return;
            }

            PersonShape shape = e.ModelElement as PersonShape;

            DiagramLayouter.Layout(shape.Diagram);
        }