private void backgroundWorker_DoWork(object sender, System.ComponentModel.DoWorkEventArgs e) { transferencia.DoWork(sender, e, backgroundWorker); try { btnCerrar.Enabled = false; } catch (Exception) { } }