Example #1
0
        public FormActionPreProcess(ActionPreProcessData data, ActionPreProcess actionPreProcess)
        {
            InitializeComponent();
            bMouseDownIm3         = false;
            bMouseDown            = false;
            _actionPreProcessData = data;
            _actionPreProcess     = actionPreProcess;
            label8.Text           = String.Format("ROI:X:{0},Y{1}\r\nWidth:{2},Height:{3}", _actionPreProcessData.InputAOIX, _actionPreProcessData.InputAOIY, _actionPreProcessData.InputAOIWidth, _actionPreProcessData.InputAOIHeight);

            rbROIReset.Checked = _actionPreProcessData.bROIReset;
            tbFileTimes.Text   = Convert.ToString(_actionPreProcessData.iFTime);
            tbFilterSize.Text  = Convert.ToString(_actionPreProcessData.iFilterSize);
            tbTimes.Text       = Convert.ToString(_actionPreProcessData.iTimes);
            tbMorSize.Text     = Convert.ToString(_actionPreProcessData.iMorSize);

            if (null != _actionPreProcessData.strProcessType)
            {
                foreach (var item in cbFilterType.Items)
                {
                    if (_actionPreProcessData.strProcessType == item.ToString())
                    {
                        cbFilterType.Text = _actionPreProcessData.strProcessType;
                    }
                }
                foreach (var item in cbMorphology.Items)
                {
                    if (_actionPreProcessData.strProcessType == item.ToString())
                    {
                        cbMorphology.Text = _actionPreProcessData.strProcessType;
                    }
                }
            }

            FormVision.eventRun += new FormVision.formRefresh(init);
        }
 public ActionPreProcess(ActionPreProcessData actionPreProcessData)
 {
     actionData                = actionPreProcessData;
     actionData.Name           = actionPreProcessData.Name;
     actionRes                 = ActionResponse.NonExecution;
     formAction                = (FormActionPreProcess)(new FormActionPreProcess(actionPreProcessData, this));
     this.actionPreProcessData = actionPreProcessData;
     Init();
 }