| | |
| | | using System.Windows.Forms; |
| | | using Bro.Common.Interface; |
| | | using Bro.Common.Base; |
| | | using Bro.Common.Model; |
| | | |
| | | namespace Bro.UI.Device.Winform |
| | | { |
| | |
| | | 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) |
| | | { |
| | | throw new NotImplementedException(); |
| | | } |
| | | |
| | | private void InitialLayout() |
| | | { |
| | | |
| | | } |
| | | |
| | | public IDevice Device { get; set; } |
| | |
| | | get => Device as MotionCardBase; |
| | | } |
| | | |
| | | //private void MotionCard_OnMonitorInvoke(DateTime arg1, string arg2, IDevice arg3, IMonitorSet arg4) |
| | | //{ |
| | | // throw new NotImplementedException(); |
| | | //} |
| | | |
| | | private void InitialLayout() |
| | | { |
| | | foreach (var axisConfig in MotionCard.IConfig.AxisSettings.FindAll(u => u.IsAxisEnabled)) |
| | | { |
| | | CtrlMotionCardAxisStatus ctrlMotionCardAxisStatus = new CtrlMotionCardAxisStatus(Device, axisConfig.AxisIndex, axisConfig.AxisName); |
| | | flowLayoutPanel1.Controls.Add(ctrlMotionCardAxisStatus); |
| | | } |
| | | |
| | | CtrlMotionCardIOStatus ctrlMotionCardIOStatus = new CtrlMotionCardIOStatus(Device); |
| | | //ctrlMotionCardIOStatus.Dock = DockStyle.Fill; //flowLayoutPanel内部控件 不要dock fill |
| | | flowLayoutPanel2.Controls.Add(ctrlMotionCardIOStatus); |
| | | } |
| | | |
| | | |
| | | |
| | | private void buttonMotionCardOperation_Click(object sender, EventArgs e) |
| | | { |
| | | FrmMotionCardOperationBase motionCardOperationBase = new FrmMotionCardOperationBase(Device); |
| | | motionCardOperationBase.Show(); |
| | | } |
| | | |
| | | } |
| | | } |