예제 #1
0
 private void searchWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     if (e.Error != null)
     {
         Application.OnThreadException(e.Error);
     }
     if (_frmStatusBar != null)
     {
         _frmStatusBar.Close();
     }
     btnSearch.Enabled = true;
     salesOrderHeaderEntityBindingSource.DataSource = _results;
 }
예제 #2
0
 private void searchWorker_RunWorkerCompleted(object sender,
                                              RunWorkerCompletedEventArgs e)
 {
     if (e.Error != null)
     {
         Application.OnThreadException(e.Error);
     }
     if (_frmStatusBar != null)
     {
         _frmStatusBar.Close();
     }
     btnSearch.Enabled = true;
     if (!e.Cancelled)
     {
         dgResults.DataSource = e.Result;
     }
 }