FdoToolbox.Tasks.Controls.FdoJoinCtl.OnBeforeConnectionRemove C# (CSharp) Метод

OnBeforeConnectionRemove() защищенный Метод

protected OnBeforeConnectionRemove ( object sender, ConnectionBeforeRemoveEventArgs e ) : void
sender object
e ConnectionBeforeRemoveEventArgs
Результат 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;
            }
        }