Example #1
0
 private void ElementAddHandler(object sender, Microsoft.VisualStudio.Modeling.ElementAddedEventArgs e)
 {
     if (_model.IsLoading)
     {
         return;
     }
     _findControl.SetupObjects(_model, _diagram, _docView);
 }
        public override void ElementAdded(Microsoft.VisualStudio.Modeling.ElementAddedEventArgs e)
        {
            if (e == null)
            {
                throw new ArgumentNullException("e");
            }

            CompartmentRuleHelper.HandleCompartmentUpdate(e.ModelElement as ElementLink, typeof(ViewPoint));
        }
Example #3
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);
        }
Example #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);
            }
        }