void worker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { if (_billingView._filterId == selectedFilterIDForCalculation) { _billingView.FilterDocuments(_billingView._filterId); } MessageBox.Show(this, "Filter calculation completed", "Success!", MessageBoxButtons.OK, MessageBoxIcon.Information); progress.Close(); }
private void chbShowRed_CheckedChanged(object sender, EventArgs e) { if (chbShowRed.Checked) { //Show red data in the grid _viewBilling.FilterDocuments(_viewBilling._filterId, "RED"); } else { //Remove red data from the grid _viewBilling.RemoveFilterFromGrid("RED"); } }