internal void DeferredRemoveCheck() { if (CanRemoveFromDiagram()) { RemoveFromDiagram(); DiagramView.DeferredRemoveComponents.Add(this); DiagramView.DefferedRemoveCheck(); } }
public void RemoveFromDiagramDeferred() { if (CanRemoveFromDiagram()) { DiagramView oldDiagramView = DiagramView; DiagramView.DeferredRemoveComponents.Remove(this); RemoveFromDiagram(); oldDiagramView.DefferedRemoveCheck(); } else { DiagramView.DeferredRemoveComponents.Add(this); } }