public void ToExportPublications(ISearchDataSet dataset){ FolderBrowserDialog folderDialog = new FolderBrowserDialog(); DialogResult resultFolderDialog = folderDialog.ShowDialog(); if (resultFolderDialog == DialogResult.OK) { string folderName = folderDialog.SelectedPath; dataset.BasePath = folderName + "/"; dataset.ExportDataSet(-1); } }
private void Export(ISearchDataSet dataset, int quantity) { DialogResult result = MessageBox.Show("¿Desea exportar las publicaciones (publicaciones de twitter) con el contenido completo?", "Export content", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question); if (result == DialogResult.Yes) { IList <IPublication> publications = dataset.GetPublications(); ReadHtmlContents(publications); dataset.AddOrReplacePublications(publications); } FolderBrowserDialog folderDialog = new FolderBrowserDialog(); DialogResult resultFolderDialog = folderDialog.ShowDialog(); if (resultFolderDialog == DialogResult.OK) { string folderName = folderDialog.SelectedPath; dataset.BasePath = folderName + "/"; dataset.BaseName = "Text Lemmatize"; dataset.ExportDataSet(quantity); } }
public void ToExportPublications(ISearchDataSet dataset) { dataset.ExportDataSet(-1); }