예제 #1
0
 private void RefreshData(IInfernoData infernoDataSource)
 {
     BackgroundWorker worker = new BackgroundWorker();
     worker.DoWork += new DoWorkEventHandler((sender, e) => GetData(sender, e, infernoDataSource));
     worker.RunWorkerCompleted += ShowData;
     worker.RunWorkerAsync();
 }
예제 #2
0
 private void GetData(object sender, DoWorkEventArgs e, IInfernoData infernoDataSource)
 {
     e.Result = infernoDataSource.GetRows(GetNumberOfRows());
 }