Exemplo 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);
        }
Exemplo 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);
        }
Exemplo n.º 3
0
        public override void ElementDeleting(ElementDeletingEventArgs e)
        {
            if (e.ModelElement.Store.InSerializationTransaction)
            {
                return;
            }

            if (e.ModelElement is MarriedToShape)
            {
                MarriedToShape shape = e.ModelElement as MarriedToShape;
                DiagramLayouter.Layout(shape.Diagram);
            }
            else
            {
                ParentOfShape shape = e.ModelElement as ParentOfShape;
                DiagramLayouter.Layout(shape.Diagram);
            }
        }
Exemplo n.º 4
0
        public override void ElementAdded(Microsoft.VisualStudio.Modeling.ElementAddedEventArgs e)
        {
            if (e.ModelElement.Store.InSerializationTransaction)
            {
                return;
            }

            if (e.ModelElement is MarriedToShape)
            {
                MarriedToShape shape = e.ModelElement as MarriedToShape;
                DiagramLayouter.Layout(shape.Diagram);
            }
            else
            {
                ParentOfShape shape = e.ModelElement as ParentOfShape;
                DiagramLayouter.Layout(shape.Diagram);
            }
        }