private void mItCalibrate_Click(object sender, EventArgs e) { DialogResult res = MessageBox.Show("Do you want to enter in Calibration mode?", "", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (res == System.Windows.Forms.DialogResult.Yes) { this.enableDisparity = true; this.currentMode = Mode.SavingFrames; this.beginCalibrationProcess = true; if (this.progresForm.InvokeRequired) { this.progresForm.BeginInvoke((MethodInvoker) delegate() { this.progresForm = new ProgresForm(); this.progresForm.FormClosing += this.progresForm_FormClosing; this.progresForm.Show(); }); } else { this.progresForm = new ProgresForm(); this.progresForm.FormClosing += this.progresForm_FormClosing; this.progresForm.Show(); } } }
private void mItCalibrate_Click(object sender, EventArgs e) { DialogResult res = MessageBox.Show("Do you want to enter in Calibration mode?", "", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (res == System.Windows.Forms.DialogResult.Yes) { this.enableDisparity = true; this.currentMode = Mode.SavingFrames; this.beginCalibrationProcess = true; if (this.progresForm.InvokeRequired) { this.progresForm.BeginInvoke((MethodInvoker)delegate() { this.progresForm = new ProgresForm(); this.progresForm.FormClosing += this.progresForm_FormClosing; this.progresForm.Show(); }); } else { this.progresForm = new ProgresForm(); this.progresForm.FormClosing += this.progresForm_FormClosing; this.progresForm.Show(); } } }