public FormActionBrightCorrect(ActionBrightCorrectData data, ActionBrightCorrect actionBrightCorrect)
        {
            InitializeComponent();
            bMouseDownIm3            = false;
            bMouseDown               = false;
            _actionBrightCorrectData = data;
            _actionBrightCorrect     = actionBrightCorrect;
            label8.Text              = String.Format("ROI:X:{0},Y{1}\r\nWidth:{2},Height:{3}", _actionBrightCorrectData.InputAOIX, _actionBrightCorrectData.InputAOIY, _actionBrightCorrectData.InputAOIWidth, _actionBrightCorrectData.InputAOIHeight);

            rbROIReset.Checked = _actionBrightCorrectData.bROIReset;
            tbScale.Value      = _actionBrightCorrectData.iScale;
            label6.Text        = Convert.ToString(_actionBrightCorrectData.iScale);
            rbDirect.Checked   = _actionBrightCorrectData.bDirect;


            tbInputScale.Value     = _actionBrightCorrectData.iInputScale;
            label1.Text            = Convert.ToString(_actionBrightCorrectData.iInputScale);
            rbBrightDirect.Checked = _actionBrightCorrectData.bBrightDirect;

            rbEqualize.Checked = _actionBrightCorrectData.bEqualize;

            if (null != _actionBrightCorrect.imageBright)
            {
                imageBox3.Image = _actionBrightCorrect.imageBright;
            }
            if (null != _actionBrightCorrect.imageTemple)
            {
                imageBox2.Image = _actionBrightCorrect.imageTemple;
            }
            FormVision.eventRun += new FormVision.formRefresh(init);
        }
 public ActionBrightCorrect(ActionBrightCorrectData actionBrightCorrectData)
 {
     actionData      = actionBrightCorrectData;
     actionData.Name = actionBrightCorrectData.Name;
     actionRes       = ActionResponse.NonExecution;
     formAction      = (FormActionBrightCorrect)(new FormActionBrightCorrect(actionBrightCorrectData, this));
     this.actionBrightCorrectData = actionBrightCorrectData;
     Init();
 }