// Desca y guarda en SpcrapingData private void CargarArchivo() { try { SpcrapingData.CargarDocCargado(Path, Archivos.CargarArchivoEnDoc(Path)); }catch (Exception e) { MessageBox.Show("Path incorrecta"); } }
void worker_CargarCarpetaCompleted(object sender, RunWorkerCompletedEventArgs e) { try { //MessageBox.Show("Numbers between 0 and 10000 divisible by 7: "); foreach (KeyValuePair <string, HtmlDocument> item in (Dictionary <string, HtmlDocument>)e.Result) { SpcrapingData.CargarDocCargado(item.Key.ToString(), item.Value); } } catch (Exception ex) { } }