Esempio n. 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;
 }
Esempio n. 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;
     }
 }