public override void ElementDeleting(ElementDeletingEventArgs e) { if (e.ModelElement.Store.InSerializationTransaction) { return; } PersonShape shape = e.ModelElement as PersonShape; DiagramLayouter.Layout(shape.Diagram); }
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); }