Esempio n. 1
0
        private void LoadDatasets()
        {
            IList <EdgarDataset> datasets;

            using (IEdgarDatasetService dsServ = new EdgarDatasetService(new AnalystEdgarDatasetsBulkRepository()))
            {
                datasets = dsServ.GetDatasets();
            }
            LoadDatasets(datasets, bindingSourceDatasets);
        }
Esempio n. 2
0
 private void Timer_Tick(object sender, EventArgs e)
 {
     using (IEdgarDatasetService edsserv = new EdgarDatasetService(new AnalystEdgarDatasetsBulkRepository()))
     {
         int          id = Convert.ToInt32(lblDatasetInProcess.Text);
         EdgarDataset ds = edsserv.GetDataset(id);
         LoadDatasets(ds, bindingSourceDatasetInProcess);
         if (ds.IsComplete || !edsserv.IsRunning(id))
         {
             timer.Stop();
             btnLoadDataset.Enabled = true;
         }
     }
     lblTimer.Text = "Timer running - " + (DateTime.Now - startTime).ToString();
 }
Esempio n. 3
0
        private IEdgarDatasetService CreateEdgarDatasetService()
        {
            IEdgarDatasetService edgarDatasetService = new EdgarDatasetService(new AnalystEdgarDatasetsBulkRepository());

            return(edgarDatasetService);
        }