Example #1
0
        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);
             }   
        }
Example #2
0
        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);
            }
        }
Example #3
0
 public void ToExportPublications(ISearchDataSet dataset)
 {
     dataset.ExportDataSet(-1);
 }