private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e) { bool blnResult = false; BackgroundWorker bw = sender as BackgroundWorker; BO_ReadFile(txtFilePath_BO.Text); if ((bool)e.Argument) { BOActions.Guardar(semanaToImport, backgroundWorker1); } blnResult = true; e.Result = blnResult; }