internal void DeferredAddCheck() { if (DiagramView == null && CanPutInDiagram(pendingDiagramView)) { PutInDiagram(pendingDiagramView, pendingViewHelper); pendingDiagramView.DeferredAddComponents.Remove(this); pendingDiagramView.DefferedAddCheck(); pendingDiagramView = null; } }
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); } }