| | |
| | | get => Device as MotionCardBase; |
| | | } |
| | | |
| | | private void MotionCard_OnMonitorInvoke(DateTime arg1, string arg2, IDevice arg3, IMonitorSet arg4) |
| | | { |
| | | throw new NotImplementedException(); |
| | | } |
| | | //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)) |
| | | { |
| | | var axisMovingStatus = MotionCard.AxisMovingOptionValues.FirstOrDefault(u => u.AxisIndex == axisConfig.AxisIndex); |
| | | if (axisMovingStatus == null) |
| | | { |
| | | axisMovingStatus = new AxisMovingStatus(); |
| | | } |
| | | CtrlMotionCardAxisStatus ctrlMotionCardAxisStatus = new CtrlMotionCardAxisStatus(axisMovingStatus); |
| | | //ctrlMotionCardAxisStatus.Dock = DockStyle.Fill; |
| | | CtrlMotionCardAxisStatus ctrlMotionCardAxisStatus = new CtrlMotionCardAxisStatus(Device, axisConfig.AxisIndex, axisConfig.AxisName); |
| | | flowLayoutPanel1.Controls.Add(ctrlMotionCardAxisStatus); |
| | | |
| | | } |
| | | |
| | | CtrlMotionCardIOStatus ctrlMotionCardIOStatus = new CtrlMotionCardIOStatus(MotionCard.MonitorValues); |
| | | //ctrlMotionCardIOStatus.Dock = DockStyle.Fill; |
| | | CtrlMotionCardIOStatus ctrlMotionCardIOStatus = new CtrlMotionCardIOStatus(Device); |
| | | //ctrlMotionCardIOStatus.Dock = DockStyle.Fill; //flowLayoutPanel内部控件 不要dock fill |
| | | flowLayoutPanel2.Controls.Add(ctrlMotionCardIOStatus); |
| | | } |
| | | |