private void BtnCancel_Click(object sender, EventArgs e) { if (!this.backgroundWorker.IsBusy) { this.Close(); } }