예제 #1
0
        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();
        }
예제 #2
0
 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");
     }
 }