DeploymentTracker.App.Windows.PackageDeployment.PackageDeployment_FormClosing C# (CSharp) Method

PackageDeployment_FormClosing() private method

Handles the FormClosing event of the PackageDeployment control.
private PackageDeployment_FormClosing ( object sender, FormClosingEventArgs e ) : void
sender object The source of the event.
e FormClosingEventArgs The instance containing the event data.
return void
        private void PackageDeployment_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (this.backgroundWorker.IsBusy)
            {
                "Please wait until the process completes and try again.".ShowUIInformation();
                e.Cancel = true;
            }
        }