Beispiel #1
0
 internal void DeferredAddCheck()
 {
     if (DiagramView == null && CanPutInDiagram(pendingDiagramView))
     {
         PutInDiagram(pendingDiagramView, pendingViewHelper);
         pendingDiagramView.DeferredAddComponents.Remove(this);
         pendingDiagramView.DefferedAddCheck();
         pendingDiagramView = null;
     }
 }
Beispiel #2
0
 public void PutInDiagramDeferred(DiagramView diagramView, Component component, ViewHelper viewHelper)
 {
     this.ModelComponent = component;
     if (CanPutInDiagram(diagramView))
     {
         PutInDiagram(diagramView, viewHelper);
         diagramView.DeferredAddComponents.Remove(this);
         diagramView.DefferedAddCheck();
     }
     else
     {
         pendingDiagramView = diagramView;
         pendingViewHelper  = viewHelper;
         diagramView.DeferredAddComponents.Add(this);
     }
 }