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; }
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; } }