protected OnBeforeConnectionRemove ( object sender, ConnectionBeforeRemoveEventArgs e ) : void | ||
sender | object | |
e | ConnectionBeforeRemoveEventArgs | |
Résultat | void |
protected override void OnBeforeConnectionRemove(object sender, ConnectionBeforeRemoveEventArgs e)
{
if (this.SelectedLeftConnection.Equals(e.ConnectionName) ||
this.SelectedRightConnection.Equals(e.ConnectionName) ||
this.SelectedTargetConnection.Equals(e.ConnectionName))
{
MessageService.ShowMessage("Cannot remove connection " + e.ConnectionName + " as this join task depends on it");
e.Cancel = true;
}
}