From a3f51a59941dbe3138e71328baa8f6c7a3d0f9b0 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期三, 02 十二月 2020 17:50:43 +0800 Subject: [PATCH] 2020-12-02-3 --- HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs index 35d231b..2025a0a 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs @@ -34,11 +34,12 @@ }; //鑾峰彇鑷姩鍖栧垪琛� GetLogicList(); + // for (int i = Logic.LogicList.Count-1; i >= 0; i--)闄嶅簭鎺掑垪 for (int i = 0; i < Logic.LogicList.Count; i++) { var currLogic = Logic.LogicList[i]; ///涓婁笅闂撮殧12鍍忕礌 - vv.AddChidren(new FrameLayout { Height = Application.GetRealHeight(12)}); + vv.AddChidren(new FrameLayout { Height = Application.GetRealHeight(12) }); LogicView.SingleLogicView logicView = new LogicView.SingleLogicView(); vv.AddChidren(logicView.FLayoutView()); logicView.btnLogicName.Text = currLogic.name; @@ -66,10 +67,12 @@ logicView.btnSwitchIcon.IsSelected = false; currLogic.enable = "false"; } - Send.switchLogic(currLogic); + Send.switchLogic(currLogic); }; - if (Logic.LogicList.Count-1==i) { + //if (i==0)闄嶅簭鎺掑垪 + if (Logic.LogicList.Count - 1 == i) + { ///鏈�鍚庝竴涓窛绂绘渶搴曢儴12,鐣岄潰鏄剧ず鏁堟灉浣滅敤; vv.AddChidren(new FrameLayout { Height = Application.GetRealHeight(12) }); } -- Gitblit v1.8.0