Esempio n. 1
0
 public ActionLine(ActionLineData actionLineData)
 {
     actionData          = actionLineData;
     actionData.Name     = actionLineData.Name;
     actionRes           = ActionResponse.NonExecution;
     formAction          = (FormActionLine)(new FormActionLine(actionLineData, this));
     this.actionLineData = actionLineData;
     Init();
 }
Esempio n. 2
0
        public FormActionLine(ActionLineData data, ActionLine actionLine)
        {
            InitializeComponent();
            bMouseDownIm3   = false;
            bMouseDown      = false;
            _actionLineData = data;
            _actionLine     = actionLine;
            label8.Text     = String.Format("ROI:X:{0},Y{1}\r\nWidth:{2},Height:{3}", _actionLineData.InputAOIX, _actionLineData.InputAOIY, _actionLineData.InputAOIWidth, _actionLineData.InputAOIHeight);

            rbROIReset.Checked = _actionLineData.bROIReset;
            tbCThreshold2.Text = Convert.ToString(_actionLineData.CThreshold2);
            tbCThreshold1.Text = Convert.ToString(_actionLineData.CThreshold1);

            tbrho.Text       = Convert.ToString(_actionLineData.rho);
            tbtheta.Text     = Convert.ToString(_actionLineData.theta);
            tblength.Text    = Convert.ToString(_actionLineData.length);
            tbthreshold.Text = Convert.ToString(_actionLineData.threshold);
            tbgab.Text       = Convert.ToString(_actionLineData.gab);

            FormVision.eventRun += new FormVision.formRefresh(init);
        }