private void GetDataTables() { mProgress = new ProgressBarForm(); bGWorkerGetData = new BackgroundWorker(); bGWorkerGetData.DoWork += new DoWorkEventHandler(bGWorkerGetData_DoWork); bGWorkerGetData.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bGWorkerGetData_RunWorkerCompleted); bGWorkerGetData.RunWorkerAsync(); mProgress.ShowDialog(); }
private void AddContact(String email) { mProgress = new ProgressBarForm(); bGWorkerAddContact = new BackgroundWorker(); bGWorkerAddContact.DoWork += new DoWorkEventHandler(bGWorkerAddContact_DoWork); bGWorkerAddContact.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bGWorkerAddContact_RunWorkerCompleted); bGWorkerAddContact.RunWorkerAsync(email); mProgress.ShowDialog(); }
private void AddColumn(GunRequest req) { mProgress = new ProgressBarForm(); bGWorkerAddColumn = new BackgroundWorker(); bGWorkerAddColumn.DoWork += new DoWorkEventHandler(bGWorkerAddColumn_DoWork); bGWorkerAddColumn.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bGWorkerAddColumn_RunWorkerCompleted); bGWorkerAddColumn.RunWorkerAsync(req); mProgress.ShowDialog(); }
private void AddPart(PartRequest req) { mProgress = new ProgressBarForm(); bGWorkerAddPart = new BackgroundWorker(); bGWorkerAddPart.DoWork += new DoWorkEventHandler(bGWorkerAddPart_DoWork); bGWorkerAddPart.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bGWorkerAddPart_RunWorkerCompleted); bGWorkerAddPart.RunWorkerAsync(req); mProgress.ShowDialog(); }
private void FillDataTables() { progressForm = new ProgressBarForm(); bGWorkerFillTables = new BackgroundWorker(); bGWorkerFillTables.DoWork += new DoWorkEventHandler(bGWorkerFillTables_DoWork); bGWorkerFillTables.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bGWorkerFillTables_RunWorkerCompleted); bGWorkerFillTables.RunWorkerAsync(); progressForm.ShowDialog(); }
private void btnLogFinished_Click(object sender, EventArgs e) { cleanProcedure.mDecon = checkBoxDecon.Checked; cleanProcedure.mDishWasher = checkBoxDishwasher.Checked; cleanProcedure.mReqID = reqId; cleanProcedure.mUltrasonic = checkBoxUltrasonic.Checked; cleanProcedure.mWaterPik = checkBoxWaterPik.Checked; cleanProcedure.mCrest10 = checkBoxCrest10.Checked; cleanProcedure.mCrest20 = checkBoxCrest20.Checked; cleanProcedure.mCrestLong = checkBoxCrestLong.Checked; mProgress = new ProgressBarForm(); bGWorkerLogFinished = new BackgroundWorker(); bGWorkerLogFinished.DoWork += new DoWorkEventHandler(bGWorkerLogFinished_DoWork); bGWorkerLogFinished.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bGWorkerLogFinished_RunWorkerCompleted); bGWorkerLogFinished.RunWorkerAsync(cleanProcedure); mProgress.ShowDialog(); }