Esempio n. 1
0
        public override void ElementDeleting(ElementDeletingEventArgs e)
        {
            if (e.ModelElement.Store.InSerializationTransaction)
            {
                return;
            }

            PersonShape shape = e.ModelElement as PersonShape;

            DiagramLayouter.Layout(shape.Diagram);
        }
Esempio n. 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);
        }