コード例 #1
0
ファイル: MainForm.cs プロジェクト: glennneiger/StereoCamera
        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();
                }
            }
        }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: orlin369/StereoCamera
        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();
                }
            }
        }