/// <summary> /// Handles the FormClosed event of the frmProgressDialog control. /// </summary> private void frmProgressDialog_FormClosed(object sender, FormClosedEventArgs e) { _progressDialog = null; }
/// <summary> /// Initializes a new instance of the frmProgressDialog class. /// </summary> /// <param name="progressDialog">The progress dialog component that launched the form.</param> public frmProgressDialog(ProgressDialog progressDialog) { InitializeComponent(); _progressDialog = progressDialog; btnCancel.DialogResult = DialogResult.None; }