public ActionThreshold(ActionThresholdData actionThresholdData) { actionData = actionThresholdData; actionData.Name = actionThresholdData.Name; actionRes = ActionResponse.NonExecution; formAction = (FormActionThreshold)(new FormActionThreshold(actionThresholdData, this)); this.actionThresholdData = actionThresholdData; Init(); }
public FormActionThreshold(ActionThresholdData data, ActionThreshold actionThreshold) { InitializeComponent(); bMouseDownIm3 = false; bMouseDown = false; _actionThresholdData = data; _actionThreshold = actionThreshold; label8.Text = String.Format("ROI:X:{0},Y{1}\r\nWidth:{2},Height:{3}", _actionThresholdData.InputAOIX, _actionThresholdData.InputAOIY, _actionThresholdData.InputAOIWidth, _actionThresholdData.InputAOIHeight); rbROIReset.Checked = _actionThresholdData.bROIReset; tbMaxValue.Text = Convert.ToString(_actionThresholdData.maxValue); tbMinValue.Text = Convert.ToString(_actionThresholdData.minValue); List <ActionBase> list = VisionManage.listScene[VisionManage.iCurrSceneIndex].listAction; foreach (ActionBase action in list) { cmbImageSrc.Items.Add(action.actionData.Name); } FormVision.eventRun += new FormVision.formRefresh(init); }