/// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void BtnCancel_Click(object sender, EventArgs e)
 {
     if (BackgroundWorkerEnumerateSQLInstances.IsBusy)
     {
         BackgroundWorkerEnumerateSQLInstances.CancelAsync();
         BackgroundWorkerEnumerateSQLInstances.Dispose();
     }
     mDialogResult            = DialogResult.Cancel;
     mSqlserverInstanceResult = SQLServerInstanceResult.CancelResult;
     Close();
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void SqlInstancesDialog_HandleCreated(object sender, EventArgs e)
 {
     BackgroundWorkerEnumerateSQLInstances.RunWorkerAsync();
 }