private void startBackgroundThread() { if (!backgroundWorker1.IsBusy) { myProgressDialog = new DIalog_ProgressBar(); form_Notification.Opacity = 0.8; myProgressDialog.Show(); backgroundWorker1.RunWorkerAsync(); } }
private void startBackgroundThread(bool dialogRequired) { if (!backgroundWorker1.IsBusy) { if (dialogRequired) { myProgressDialog = new DIalog_ProgressBar(); this.Opacity = 0.8; myProgressDialog.Show(); } backgroundWorker1.RunWorkerAsync(); } }
private void startBackgoundThread() { if (!backgroundWorker1.IsBusy) { myProgressDialog = new DIalog_ProgressBar(); mainForm.Opacity = 0.8; myProgressDialog.Show(); backgroundWorker1.RunWorkerAsync(); } else { Dialog_MyMessageBox.Show(Constant.REQUEST_UNDER_PROCESS, 1, UiColors.MESSAGE_ERROR); } }
private void startBackgoundThread() { if (!backgroundWorker1.IsBusy) { myProgressDialog = new DIalog_ProgressBar(); this.Opacity = 0.8; myProgressDialog.Show(); var dropdownMap = new Dictionary <string, int>(); dropdownMap.Add(EnumData.viewCompanyListHeadings.STATUS.ToString(), dropown_status.SelectedIndex); dropdownMap.Add(EnumData.viewCompanyListHeadings.TYPE.ToString(), dropdown_companyType.SelectedIndex); backgroundWorker1.RunWorkerAsync(dropdownMap); } else { Dialog_MyMessageBox.Show(Constant.REQUEST_UNDER_PROCESS, 1, UiColors.MESSAGE_ERROR); } }
private void startBackgroundThread(bool dialogRequired, IDictionary <string, Object> argsMap, Entity_PlacementDetails placedObj) { if (!backgroundWorker1.IsBusy) { if (dialogRequired) { myProgressDialog = new DIalog_ProgressBar(); this.Opacity = 0.8; myProgressDialog.Show(); } if (placedObj == null) { backgroundWorker1.RunWorkerAsync(argsMap); } else { backgroundWorker1.RunWorkerAsync(placedObj); } dialogUpdatePlacementDetails.pictureBox1.Enabled = false; } }
private void startBackgroundThread(bool dialogRequired, int mode) { if (compManager == null) { compManager = new CompanyManagerImpl(); } switch (mode) { case 0: if (!backgroundWorker1.IsBusy) { if (dialogRequired) { myProgressDialog = new DIalog_ProgressBar(); this.Opacity = 0.8; myProgressDialog.Show(); } panel_main.Controls.Clear(); backgroundWorker1.RunWorkerAsync(); } break; case 1: if (!backgroundWorker2.IsBusy) { Dialog_MyMessageBox.Show(Constant.NOTIFICATION_NOTIFY_SUCCESS, 1); backgroundWorker2.RunWorkerAsync(); } else { Dialog_MyMessageBox.Show(Constant.REQUEST_UNDER_PROCESS, 1, UiColors.MESSAGE_ERROR); } break; } }