Example #1
0
        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();

        }