ERP.LoginUI.RegistrationForm.CancelButton_Click C# (CSharp) Метод

CancelButton_Click() приватный Метод

If a registration or login operation is in progress and is cancellable, cancel it. Otherwise, close the window.
private CancelButton_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void
        private void CancelButton_Click(object sender, EventArgs e)
        {
            if (this.registrationData.CurrentOperation != null && this.registrationData.CurrentOperation.CanCancel)
            {
                this.registrationData.CurrentOperation.Cancel();
            }
            else
            {
                this.parentWindow.Close();
            }
        }
    }