Esempio n. 1
0
        private void BtnTeachLoc_Click(object sender, EventArgs e)
        {
            if (this.selectedLoc == null)
            {
                return;
            }
            if (this.selectedLoc.IsSystemLoc)
            {
                return;
            }
            if (this.rdoTeachXY.Checked)
            {
                this.selectedLoc.X = Machine.Instance.Robot.PosX;
                this.selectedLoc.Y = Machine.Instance.Robot.PosY;
            }
            if (this.rdoTeachZ.Checked)
            {
                this.selectedLoc.Z = Machine.Instance.Robot.PosZ;
            }

            LocationMgr.Instance.Save();

            this.UpdateSelectedLocText();
            if (this.selectedLoc != null && this.selectedLocBackUp != null)
            {
                CompareObj.CompareProperty(this.selectedLoc, this.selectedLocBackUp, null, this.GetType().Name);
            }
        }
Esempio n. 2
0
 private void CbxChn2_SelectedIndexChanged(object sender, EventArgs e)
 {
     SensorMgr.Instance.Proportioners.Channel2 = (int)cbxChn2.SelectedItem;
     MsgCenter.Broadcast(MachineMsg.SETUP_INFO, this, null);
     SensorMgr.Instance.Save();
     CompareObj.CompareProperty(SensorMgr.Instance.Proportioners, this.settingBackUp, true);
 }
Esempio n. 3
0
        private void btnOk_Click(object sender, EventArgs e)
        {
            if (!tbWaitInMills.IsValid || !tbSpeed.IsValid)
            {
                //MessageBox.Show("Please input valid value");
                MetroSetMessageBox.Show(this, "请输入合理的值");
                return;
            }

            changeSpeedCmdLine.Speed       = tbSpeed.Value;
            changeSpeedCmdLine.WaitInMills = tbWaitInMills.Value;

            if (isCreating)
            {
                MsgCenter.Broadcast(Constants.MSG_FINISH_ADDING_CMD_LINE, this, changeSpeedCmdLine);
            }
            else
            {
                MsgCenter.Broadcast(Constants.MSG_FINISH_EDITING_CMD_LINE, this, changeSpeedCmdLine);
            }

            if (!this.isCreating)
            {
                if (this.changeSpeedCmdLine != null && this.changeSpeedCmdLineBackUp != null)
                {
                    CompareObj.CompareProperty(this.changeSpeedCmdLine, this.changeSpeedCmdLineBackUp, null, this.GetType().Name, true);
                }
            }
        }
Esempio n. 4
0
 public void DoDone()
 {
     this.modelFindPrm.AcceptScore  = (double)this.nudAcceptThreshold.Value;
     this.modelFindPrm.SettlingTime = (int)this.nudSettlingTime.Value;
     this.modelFindPrm.Tolerance    = (double)this.nudTolerance.Value;
     this.modelFindPrm.ExecutePrm   = (ExecutePrm)this.light.ExecutePrm.Clone();
     if (this.pattern is Workpiece && this.ckbFrmFile.Checked)
     {
         MessageBox.Show("workPiece的mark点不能来自文件,只能示教");
         return;
     }
     this.modelFindPrm.IsFromFile = this.ckbFrmFile.Checked;
     if (this.isManual)
     {
         this.DialogResult = DialogResult.OK;
         this.Close();
     }
     else
     {
         this.modelFindPrm.CopyTempDataTo(TempVisionData.Ins.TempModelFindPrm);
         TempVisionData.Ins.Save();
         this.DialogResult = DialogResult.OK;
         this.Close();
     }
     CompareObj.CompareProperty(this.modelFindPrm, this.modelFindPrmBackUp, true);
 }
Esempio n. 5
0
 private void btnSave_Click(object sender, EventArgs e)
 {
     Machine.Instance.Robot.TrcPrm.VelMax = Machine.Instance.Robot.DefaultPrm.MaxVelXY;
     Machine.Instance.Robot.TrcPrm.AccMax = Machine.Instance.Robot.DefaultPrm.MaxAccXY;
     Machine.Instance.Robot.SaveDefaultPrm();
     CompareObj.CompareProperty(Machine.Instance.Robot.DefaultPrm, this.DefaultPrmBackUp, null, this.GetType().Name);
 }
Esempio n. 6
0
 private void SettingSensorsForm_OnSaveClicked()
 {
     MsgCenter.Broadcast(MachineMsg.SETUP_INFO, this, null);
     SensorMgr.Instance.Save();
     this.Close();
     CompareObj.CompareProperty(this.currEasySerialPort, this.currEasySerialPortBackUp, null, this.GetType().Name, true);
 }
Esempio n. 7
0
        private void btnOk_Click(object sender, EventArgs e)
        {
            if (!tbX.IsValid || !tbY.IsValid)
            {
                //MessageBox.Show("Please input valid values.");
                MessageBox.Show("请输入正确的值.");
                return;
            }
            PointD laserMap = this.pattern.SystemRel(tbX.Value, tbY.Value);

            measureHeightCmdLine.Position.X   = laserMap.X;
            measureHeightCmdLine.Position.Y   = laserMap.Y;
            measureHeightCmdLine.StandardHt   = this.heightControl1.BoardHeight;
            measureHeightCmdLine.ToleranceMax = this.heightControl1.MaxTolerance;
            measureHeightCmdLine.ToleranceMin = this.heightControl1.MinTolerance;
            if (isCreating)
            {
                MsgCenter.Broadcast(Constants.MSG_FINISH_ADDING_CMD_LINE, this, measureHeightCmdLine);
            }
            else
            {
                MsgCenter.Broadcast(Constants.MSG_FINISH_EDITING_CMD_LINE, this, measureHeightCmdLine);
            }
            Properties.Settings.Default.laserX = measureHeightCmdLine.Position.X;
            Properties.Settings.Default.laserY = measureHeightCmdLine.Position.Y;
            if (!this.isCreating)
            {
                Close();
                if (this.measureHeightCmdLine != null && this.measureHeightCmdLineBackUp != null)
                {
                    CompareObj.CompareProperty(this.measureHeightCmdLine, this.measureHeightCmdLineBackUp, null, this.GetType().Name, true);
                    CompareObj.CompareField(this.measureHeightCmdLine, this.measureHeightCmdLineBackUp, null, this.GetType().Name, true);
                }
            }
        }
Esempio n. 8
0
        private void BtnSave_Click(object sender, EventArgs e)
        {
            string tag = this.GetType().Name;

            if (this.valve.ValveSeries == ValveSeries.喷射阀)
            {
                JtValve jtValve = (JtValve)this.valve;
                ValvePrmMgr.Instance.FindBy(this.valve.ValveType).JtValvePrm = jtValve.Prm;
                CompareObj.CompareProperty(jtValve.Prm, this.jtValvePrmBackUp, null, tag);
            }
            else if (this.valve.ValveSeries == ValveSeries.螺杆阀)
            {
                SvValve svValve = (SvValve)this.valve;
                ValvePrmMgr.Instance.FindBy(this.valve.ValveType).SvValvePrm = svValve.Prm;
                CompareObj.CompareProperty(svValve.Prm, this.svValvePrmBackUp, null, tag);
            }
            else if (this.valve.ValveSeries == ValveSeries.齿轮泵阀)
            {
                GearValve gearValve = (GearValve)this.valve;
                ValvePrmMgr.Instance.FindBy(this.valve.ValveType).GearValvePrm = gearValve.Prm;
                CompareObj.CompareProperty(gearValve.Prm, this.gearValvePrmBackUp, null, tag);
            }

            Machine.Instance.SaveValveSettings();
            this.Close();
        }
Esempio n. 9
0
 private void BtnSave_Click(object sender, EventArgs e)
 {
     Machine.Instance.SetupValve();
     MsgCenter.Broadcast(MachineMsg.SETUP_INFO, this);
     Machine.Instance.Setting.Save();
     CompareObj.CompareProperty(Machine.Instance.Setting, this.SettingBackUp, null, this.GetType().Name);
 }
Esempio n. 10
0
 private void SettingRobotForm_OnSaveClicked()
 {
     Machine.Instance.Robot.TrcPrm.VelMax = Machine.Instance.Robot.DefaultPrm.MaxVelXY;
     Machine.Instance.Robot.TrcPrm.AccMax = Machine.Instance.Robot.DefaultPrm.MaxAccXY;
     Machine.Instance.Robot.SaveDefaultPrm();
     CompareObj.CompareProperty(Machine.Instance.Robot.DefaultPrm, this.DefaultPrmBackUp, null, this.GetType().Name);
 }
Esempio n. 11
0
 private void btnCancel_Click(object sender, EventArgs e)
 {
     ValvePrmMgr.Instance.InsertIndex((int)valve1.ValveType, valve1.Prm);
     ValvePrmMgr.Instance.InsertIndex((int)valve2.ValveType, valve2.Prm);
     Machine.Instance.Valve1 = this.valve1;
     Machine.Instance.Valve2 = this.valve2;
     CompareObj.CompareProperty(Machine.Instance.Setting, this.settingBackUp, null, this.GetType().Name);
 }
Esempio n. 12
0
 private void SettingWeightForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (this.valveWeightPrm != null && this.valveWeightPrmBackUp != null)
     {
         //参数修改记录
         CompareObj.CompareProperty(this.valveWeightPrm, this.valveWeightPrmBackUp);
     }
 }
Esempio n. 13
0
 public void DoDone()
 {
     this.grayCheckPrm.SettlingTime    = (int)this.nudSettlingTime.Value;
     this.grayCheckPrm.AcceptTolerance = (int)this.nudGrayTolerance.Value;
     this.grayCheckPrm.IsCreated       = true;
     CompareObj.CompareProperty(this.grayCheckPrm, this.grayCheckPrmBackUP, true);
     this.DialogResult = DialogResult.OK;
     this.Close();
 }
Esempio n. 14
0
        private void CbxControlType2_SelectedIndexChanged(object sender, EventArgs e)
        {
            Proportioner.ControlType controlType = (Proportioner.ControlType)cbxControlType2.SelectedItem;
            Machine.Instance.Proportioner2.SetProportionor(2, controlType, SensorMgr.Instance.Proportioners);
            MsgCenter.Broadcast(MachineMsg.SETUP_INFO, this, null);
            SensorMgr.Instance.Save();

            CompareObj.CompareProperty(SensorMgr.Instance.Proportioners, this.settingBackUp, true);
        }
Esempio n. 15
0
 private void btnOk_Click(object sender, EventArgs e)
 {
     Machine.Instance.Setting.MachineSelect = (MachineSelection)this.comboBox1.SelectedItem;
     Machine.Instance.SetupIO();
     MsgCenter.Broadcast(MachineMsg.SETUP_INFO, this, null);
     Machine.Instance.Setting.Save();
     this.Close();
     CompareObj.CompareProperty(Machine.Instance.Setting, this.SettingBackUp, null, this.GetType().Name);
 }
Esempio n. 16
0
 public void Save()
 {
     if (this.axis == null)
     {
         return;
     }
     AxisPrmMgr.Instance.Save();
     CompareObj.CompareProperty(this.axis.Prm, this.PrmBackUp, null, this.GetType().Name);
 }
Esempio n. 17
0
 private void btnSave_Click(object sender, EventArgs e)
 {
     MsgCenter.Broadcast(MachineMsg.SETUP_INFO, this);
     CameraPrmMgr.Instance.Save();
     if (Machine.Instance.Camera.Prm != null && this.prmBackUp != null)
     {
         CompareObj.CompareProperty(Machine.Instance.Camera.Prm, this.prmBackUp, null, this.GetType().Name);
     }
 }
Esempio n. 18
0
        private void btnOk_Click(object sender, System.EventArgs e)
        {
            if (lineCoordinateCache.Count <= 0)
            {
                //MessageBox.Show("Line points is empty.");
                MessageBox.Show("线轨迹点个数不可以为0.");
                return;
            }
            lineCmdLine.LineCoordinateList.Clear();
            lineCmdLine.LineCoordinateList.AddRange(lineCoordinateCache);
            lineCmdLine.IsWeightControl = cbWeightControl.Checked;

            if (isCreating)
            {
                MsgCenter.Broadcast(Constants.MSG_FINISH_ADDING_CMD_LINE, this, lineCmdLine);
            }
            else
            {
                MsgCenter.Broadcast(Constants.MSG_FINISH_EDITING_CMD_LINE, this, lineCmdLine);
            }

            int count = lineCmdLine.LineCoordinateList.Count;

            if (count > 0)
            {
                LineCoordinate lineCoordinate = lineCmdLine.LineCoordinateList[count - 1];
                Properties.Settings.Default.LineStartX = lineCoordinate.Start.X;
                Properties.Settings.Default.LineStartY = lineCoordinate.Start.Y;
                Properties.Settings.Default.LineEndX   = lineCoordinate.End.X;
                Properties.Settings.Default.LineEndY   = lineCoordinate.End.Y;
                Properties.Settings.Default.LineStyle  = (int)lineCmdLine.LineStyle;
                Properties.Settings.Default.LineIsWt   = lineCmdLine.IsWeightControl;
                Properties.Settings.Default.LineWt     = lineCmdLine.WholeWeight;
            }
            if (Machine.Instance.Valve1.RunMode == ValveRunMode.AdjustLine)
            {
                Line.WaitMsg.Set();
            }
            if (!this.isCreating)
            {
                Close();
                if (this.lineCmdLine != null && this.lineCmdLineBackUp != null)
                {
                    CompareObj.CompareField(this.lineCmdLine, this.lineCmdLineBackUp, null, this.GetType().Name, true);
                    CompareObj.CompareProperty(this.lineCmdLine, this.lineCmdLineBackUp, null, this.GetType().Name, true);
                    if (this.lineCmdLine.LineCoordinateList.Count == this.lineCmdLineBackUp.LineCoordinateList.Count)
                    {
                        for (int i = 0; i < this.lineCmdLine.LineCoordinateList.Count; i++)
                        {
                            string pathRoot = this.GetType().Name + "\\lineCmdLine\\" + "LineCoordinateList: " + i.ToString();
                            CompareObj.CompareField(this.lineCmdLine.LineCoordinateList[i], this.lineCmdLineBackUp.LineCoordinateList[i], null, pathRoot, true);
                        }
                    }
                }
            }
        }
Esempio n. 19
0
        private void CbxVendor_SelectedIndexChanged(object sender, EventArgs e)
        {
            Laser.Vendor vendor = (Laser.Vendor) this.cbxVendor.SelectedItem;
            Machine.Instance.Laser.SetLaserable(vendor);
            this.txtReadCmd.Text = Machine.Instance.Laser.Laserable.CmdReadValue;

            MsgCenter.Broadcast(MachineMsg.SETUP_INFO, this, null);
            SensorMgr.Instance.Save();
            CompareObj.CompareProperty(SensorMgr.Instance.Laser, this.settingBackUp, null, this.GetType().Name, true);
        }
Esempio n. 20
0
 private void btnDefault_Click(object sender, EventArgs e)
 {
     if (MetroSetMessageBox.Show(this, "将模组的参数设置为默认值?", "警告",
                                 MessageBoxButtons.OKCancel, MessageBoxIcon.Warning) == DialogResult.OK)
     {
         SettingUtil.ResetToDefault <RobotDefaultPrm>(Machine.Instance.Robot.DefaultPrm);
         //LngPropertyProxyTypeDescriptor proxyObj = new LngPropertyProxyTypeDescriptor(Machine.Instance.Robot.DefaultPrm, this.GetType().Name);
         this.propertyGrid1.SelectedObject = Machine.Instance.Robot.DefaultPrm;
         CompareObj.CompareProperty(Machine.Instance.Robot.DefaultPrm, this.DefaultPrmBackUp, null, this.GetType().Name);
     }
 }
Esempio n. 21
0
        private void btnOk_Click(object sender, EventArgs e)
        {
            Machine.Instance.SetupValve();
            MsgCenter.Broadcast(MachineMsg.SETUP_INFO, this);
            Machine.Instance.Setting.Save();
            this.Close();
            CompareObj.CompareProperty(Machine.Instance.Setting, this.SettingBackUp, null, this.GetType().Name);
            Account tempAccount = AccountMgr.Instance.FindBy("Supervisor");

            AccountMgr.Instance.SwitchUser(tempAccount);
        }
Esempio n. 22
0
 private void DialogCPK_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (this.isRunning)
     {
         e.Cancel = true;
         MessageBox.Show("CPK 测试执行中....");
         return;
     }
     CPKMgr.Instance.SavePrm();
     CompareObj.CompareProperty(CPKMgr.Instance.Prm, this.cpkPrmBackUp, null, this.GetType().Name);
 }
Esempio n. 23
0
        private void CbxVendor_SelectedIndexChanged(object sender, EventArgs e)
        {
            Drive.Sensors.Scalage.Scale.Vendor vendor = (Drive.Sensors.Scalage.Scale.Vendor) this.cbxVendor.SelectedItem;
            Machine.Instance.Scale.SetScalable(vendor);
            CompareObj.CompareProperty(SensorMgr.Instance.Scale, this.settingBackUp, null, this.GetType().Name, true);
            this.txtPrint.Text = Machine.Instance.Scale.Scalable.PrintCmd;
            this.txtTare.Text  = Machine.Instance.Scale.Scalable.TareCmd;
            this.txtZero.Text  = Machine.Instance.Scale.Scalable.ZeroCmd;

            MsgCenter.Broadcast(MachineMsg.SETUP_INFO, this, null);
            SensorMgr.Instance.Save();
        }
Esempio n. 24
0
 public void DoDone()
 {
     if (this.flag == 4)
     {
         if (!this.err)
         {
             //to do accept calibration result
             Machine.Instance.Robot.CalibBy9dPrm = this.calibBy9dPrm;
             Machine.Instance.Robot.SaveCalibBy9dPrm();
             CompareObj.CompareProperty(this.prm, this.prmBackUp, null, this.GetType().Name, true);
         }
     }
 }
Esempio n. 25
0
        private void SettingRobotForm_OnResetClicked()
        {
            //if (MessageBox.Show("Reset robot default setting to default?", "Warning",
            //MessageBoxButtons.OKCancel, MessageBoxIcon.Warning) == DialogResult.OK)
            if (MessageBox.Show("将模组的参数设置为默认值?", "警告",
                                MessageBoxButtons.OKCancel, MessageBoxIcon.Warning) == DialogResult.OK)
            {
                SettingUtil.ResetToDefault <RobotDefaultPrm>(Machine.Instance.Robot.DefaultPrm);
                LngPropertyProxyTypeDescriptor proxyObj = new LngPropertyProxyTypeDescriptor(Machine.Instance.Robot.DefaultPrm, this.GetType().Name);
                this.propertyGrid1.SelectedObject = Machine.Instance.Robot.DefaultPrm;

                CompareObj.CompareProperty(Machine.Instance.Robot.DefaultPrm, this.DefaultPrmBackUp, null, this.GetType().Name);
            }
        }
Esempio n. 26
0
 public void Reset()
 {
     if (this.axis == null)
     {
         return;
     }
     //if (MessageBox.Show(string.Format("reset axis {0} setting to default?", this.axis.Name), "reset",
     //MessageBoxButtons.OKCancel, MessageBoxIcon.Warning) == DialogResult.OK)
     if (MessageBox.Show(string.Format("将轴 {0} 的参数设置为默认?", this.axis.Name), "重置",
                         MessageBoxButtons.OKCancel, MessageBoxIcon.Warning) == DialogResult.OK)
     {
         MotionUtil.ResetAxisPrm(this.axis);
         this.propertyGrid1.SelectedObject = this.axis.Prm;
         CompareObj.CompareProperty(this.axis.Prm, this.PrmBackUp);
     }
 }
Esempio n. 27
0
        private void btnOk_Click(object sender, System.EventArgs e)
        {
            if (!tbLocationX.IsValid || !tbLocationY.IsValid || !tbWeight.IsValid)
            {
                //MessageBox.Show("Please input valid values.");
                MessageBox.Show("请输入正确的值");
                return;
            }
            //机械坐标->系统坐标
            PointD p = this.pattern.SystemRel(tbLocationX.Value, tbLocationY.Value);

            dotCmdLine.Position.X      = p.X;
            dotCmdLine.Position.Y      = p.Y;
            dotCmdLine.DotStyle        = (DotStyle)comboBoxDotType.SelectedIndex;
            dotCmdLine.IsWeightControl = cbWeightControl.Checked;
            dotCmdLine.Weight          = tbWeight.Value;
            dotCmdLine.IsAssign        = this.ckbShotNums.Checked;
            dotCmdLine.NumShots        = int.Parse(this.tbShots.Text);
            dotCmdLine.Tilt            = (TiltType)this.cbTiltType.SelectedIndex;
            if (!this.cbTiltType.Visible)
            {
                dotCmdLine.Tilt = 0;
            }
            if (isCreating)
            {
                MsgCenter.Broadcast(Constants.MSG_FINISH_ADDING_CMD_LINE, this, dotCmdLine);
            }
            else
            {
                MsgCenter.Broadcast(Constants.MSG_FINISH_EDITING_CMD_LINE, this, dotCmdLine);
            }
            Properties.Settings.Default.DotX     = dotCmdLine.Position.X;
            Properties.Settings.Default.DotY     = dotCmdLine.Position.Y;
            Properties.Settings.Default.DotStyle = (int)dotCmdLine.DotStyle;
            Properties.Settings.Default.DotIsWt  = dotCmdLine.IsWeightControl;
            Properties.Settings.Default.DotWt    = dotCmdLine.Weight;
            if (!this.isCreating)
            {
                Close();
            }
            if (this.dotCmdLine != null && this.dotCmdLineBackUp != null)
            {
                CompareObj.CompareField(this.dotCmdLine, this.dotCmdLineBackUp, null, this.GetType().Name, true);
                CompareObj.CompareProperty(this.dotCmdLine, this.dotCmdLineBackUp, null, this.GetType().Name, true);
            }
        }
Esempio n. 28
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            bool lotControlEnable = this.fluidProgram.LotControlEnable;

            this.fluidProgram.LotControlEnable = this.cbxLotControl.Checked;
            this.fluidProgram.RuntimeSettings.IsStartLotById = this.cbxStartLotById.Checked;
            this.Close();
            if (lotControlEnable != this.fluidProgram.LotControlEnable)
            {
                string msg = string.Format("LotControlEnable oldValue:{0}->newValue{1}", lotControlEnable, this.fluidProgram.LotControlEnable);
                Logger.DEFAULT.Info(LogCategory.SETTING, this.GetType().Name, msg);
            }
            if (this.fluidProgram.RuntimeSettings != null && this.runtimeSettingsBackUp != null)
            {
                CompareObj.CompareProperty(this.fluidProgram.RuntimeSettings, this.runtimeSettingsBackUp, null, this.GetType().Name);
                CompareObj.CompareProperty(this.fluidProgram.RuntimeSettings, this.runtimeSettingsBackUp, null, this.GetType().Name);
            }
        }
Esempio n. 29
0
        private void btnOk_Click(object sender, System.EventArgs e)
        {
            if (listBoxPatterns.Items.Count <= 0)
            {
                //MessageBox.Show("No pattern is available!");
                MessageBox.Show("没有合适的拼版");
                return;
            }
            if (listBoxPatterns.SelectedItem == null)
            {
                MessageBox.Show("没有选择拼版");
                return;
            }
            if (!tbOriginX.IsValid || !tbOriginY.IsValid)
            {
                MessageBox.Show("请输入正确的原点值");
                return;
            }
            doMultipassCmdLine.PatternName = patternNameList[listBoxPatterns.SelectedIndex];
            //机械坐标->系统坐标
            PointD p = this.pattern.SystemRel(tbOriginX.Value, tbOriginY.Value);

            doMultipassCmdLine.Origin.X = p.X;
            doMultipassCmdLine.Origin.Y = p.Y;
            doMultipassCmdLine.Valve    = (ValveType)this.cbxValveType.SelectedItem;
            doMultipassCmdLine.BoardNo  = this.txtBoardNo.Value;
            if (isCreating)
            {
                MsgCenter.Broadcast(Constants.MSG_FINISH_ADDING_CMD_LINE, this, doMultipassCmdLine);
            }
            else
            {
                MsgCenter.Broadcast(Constants.MSG_FINISH_EDITING_CMD_LINE, this, doMultipassCmdLine);
            }
            if (!this.isCreating)
            {
                Close();
            }
            if (this.doMultipassCmdLine != null && this.doMultipassCmdLineBackUp != null)
            {
                CompareObj.CompareField(this.doMultipassCmdLine, this.doMultipassCmdLineBackUp, null, this.Tag, true);
                CompareObj.CompareProperty(this.doMultipassCmdLine, this.doMultipassCmdLineBackUp, null, this.Tag, true);
            }
        }
Esempio n. 30
0
        private void TbrExposure_ValueChanged(object sender, EventArgs e)
        {
            this.lblExpo.Text = this.tbrExposure.Value.ToString();

            if (this.camera == null)
            {
                return;
            }

            if (this.camera.SetExposure((int)this.tbrExposure.Value) != 0)
            {
                return;
            }
            Properties.Settings.Default.exposureTime = (int)this.tbrExposure.Value;
            if (this.camera.Prm != null && this.prmBackUp != null)
            {
                CompareObj.CompareProperty(this.camera.Prm, this.prmBackUp, null, this.GetType().Name);
            }
        }