private void node_DeletedInNodeCollection(object sender, EventArgs e) { RemoveFromCanvas(); StartPort.ConnectedConnectors.Remove(this); EndPort.ConnectedConnectors.Remove(this); EndPort.CalculateData(); }
public void Delete() { RemoveFromCanvas(); StartPort.ConnectedConnectors.Remove(this); EndPort.ConnectedConnectors.Remove(this); EndPort.CalculateData(); }