| | |
| | | Device = device; |
| | | |
| | | InitialLayout(); |
| | | |
| | | MotionCard.OnMonitorInvoke += MotionCard_OnMonitorInvoke; |
| | | //CvImage = new Canvas(); |
| | | //CvImage.IsShowElementList = false; |
| | | //CvImage.IsShowROITool = false; |
| | | //CvImage.Dock = DockStyle.Fill; |
| | | //Controls.Add(CvImage); |
| | | //Camera.OnImageUpdated += Camera_UpdateShowImage; |
| | | //Camera.OnElementsUpdated += Camera_OnElementsUpdated; |
| | | //Camera.OnCameraOpModeChanged += Camera_OnCameraOpModeChanged; |
| | | |
| | | //InitialToolBarVisible(); |
| | | } |
| | | |
| | | private void MotionCard_OnMonitorInvoke(DateTime arg1, string arg2, IDevice arg3, IMonitorSet arg4) |
| | |
| | | |
| | | private void InitialLayout() |
| | | { |
| | | foreach (var axisConfig in MotionCard.IConfig.AxisSettings.FindAll(u => u.IsAxisEnabled)) |
| | | { |
| | | var axisMovingStatus = MotionCard.AxisMovingOptionValues.FirstOrDefault(u=>u.AxisIndex== axisConfig.AxisIndex); |
| | | if (axisMovingStatus!=null) |
| | | { |
| | | CtrlMotionCardAxisStatus ctrlMotionCardAxisStatus = new CtrlMotionCardAxisStatus(axisMovingStatus); |
| | | ctrlMotionCardAxisStatus.Dock = DockStyle.Fill; |
| | | flowLayoutPanel1.Controls.Add(ctrlMotionCardAxisStatus); |
| | | } |
| | | } |
| | | |
| | | CtrlMotionCardIOStatus ctrlMotionCardIOStatus = new CtrlMotionCardIOStatus(); |
| | | flowLayoutPanel2.Controls.Add(ctrlMotionCardIOStatus); |
| | | } |
| | | |
| | | public IDevice Device { get; set; } |
| | |
| | | FrmMotionCardOperationBase motionCardOperationBase = new FrmMotionCardOperationBase(Device); |
| | | motionCardOperationBase.Show(); |
| | | } |
| | | |
| | | } |
| | | } |