From 78584911d0457ad9fc26d9dfc6f374b7ef531c0f Mon Sep 17 00:00:00 2001
From: xcd <834800634@qq.com>
Date: 星期日, 22 十一月 2020 13:45:09 +0800
Subject: [PATCH] 1. 添加操作员输入和界面显示 2. 添加通过输入窗体 3. 添加webservice调用帮助类 4. M071添加MES数据检查和数据上传功能,添加相关界面显示和流程控制

---
 src/Bro.UI.Device.Winform/MotionCard/CtrlMotionCardRunBase.cs |   37 ++++++++++++++++++++++---------------
 1 files changed, 22 insertions(+), 15 deletions(-)

diff --git a/src/Bro.UI.Device.Winform/MotionCard/CtrlMotionCardRunBase.cs b/src/Bro.UI.Device.Winform/MotionCard/CtrlMotionCardRunBase.cs
index d3f0c1d..6da479f 100644
--- a/src/Bro.UI.Device.Winform/MotionCard/CtrlMotionCardRunBase.cs
+++ b/src/Bro.UI.Device.Winform/MotionCard/CtrlMotionCardRunBase.cs
@@ -9,6 +9,7 @@
 using System.Windows.Forms;
 using Bro.Common.Interface;
 using Bro.Common.Base;
+using Bro.Common.Model;
 
 namespace Bro.UI.Device.Winform
 {
@@ -25,21 +26,6 @@
             Device = device;
 
             InitialLayout();
-            //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 InitialLayout()
-        {
-
         }
 
         public IDevice Device { get; set; }
@@ -49,10 +35,31 @@
             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();
         }
+
     }
 }

--
Gitblit v1.8.0