예제 #1
0
 internal void DeferredRemoveCheck()
 {
     if (CanRemoveFromDiagram())
     {
         RemoveFromDiagram();
         DiagramView.DeferredRemoveComponents.Add(this);
         DiagramView.DefferedRemoveCheck();
     }
 }
예제 #2
0
 public void RemoveFromDiagramDeferred()
 {
     if (CanRemoveFromDiagram())
     {
         DiagramView oldDiagramView = DiagramView;
         DiagramView.DeferredRemoveComponents.Remove(this);
         RemoveFromDiagram();
         oldDiagramView.DefferedRemoveCheck();
     }
     else
     {
         DiagramView.DeferredRemoveComponents.Add(this);
     }
 }