Example #1
0
        private void bgWorkerCreatePO_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            CommonFunctions.ResetProgressBar();

            CommonFunctions.ToggleEnabledPropertyOfAllControls(this);
            lblStatus.Enabled = true;
            btnClose.Focus();
        }
 private void bgWorkerCreateVendorOrder_DoWork(object sender, DoWorkEventArgs e)
 {
     try
     {
         CommonFunctions.ToggleEnabledPropertyOfAllControls(this);
         lblStatus.Enabled = true;
         CreateVendorOrderSheet();
     }
     catch (Exception ex)
     {
         CommonFunctions.ShowErrorDialog("VendorOrderSheetForm.bgWorkerCreateVendorOrder_DoWork()", ex);
     }
 }