private void LoadDatasets() { IList <EdgarDataset> datasets; using (IEdgarDatasetService dsServ = new EdgarDatasetService(new AnalystEdgarDatasetsBulkRepository())) { datasets = dsServ.GetDatasets(); } LoadDatasets(datasets, bindingSourceDatasets); }
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(); }
private IEdgarDatasetService CreateEdgarDatasetService() { IEdgarDatasetService edgarDatasetService = new EdgarDatasetService(new AnalystEdgarDatasetsBulkRepository()); return(edgarDatasetService); }