From f77a3add1e7ab266e473da9128bbe5758ba3a890 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期日, 20 十二月 2020 19:29:03 +0800 Subject: [PATCH] Merge branch 'NewFilePath' into CJL --- HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs | 35 ++++++++++++++++++++++------------- 1 files changed, 22 insertions(+), 13 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs old mode 100644 new mode 100755 index 2b375d9..167b476 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs @@ -34,8 +34,8 @@ }; //鑾峰彇鑷姩鍖栧垪琛� GetLogicList(); - // for (int i = Logic.LogicList.Count-1; i >= 0; i--)闄嶅簭鎺掑垪 - for (int i = 0; i < Logic.LogicList.Count; i++) + 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鍍忕礌 @@ -52,6 +52,7 @@ addLogic.Show(); MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; }; + //寮�鍏冲浘鏍囩殑鐐瑰嚮浜嬩欢 logicView.btnSwitchIcon.MouseUpEventHandler += (sender1, e1) => { logicView.btnSwitchIcon.IsSelected = !logicView.btnSwitchIcon.IsSelected; @@ -59,20 +60,29 @@ { logicView.btnSwitchIcon.IsSelected = true; currLogic.enable = "true"; - - } else { logicView.btnSwitchIcon.IsSelected = false; currLogic.enable = "false"; } - Send.switchLogic(currLogic); + //Send.switchLogic(currLogic); + new System.Threading.Thread(() => + { + try + { + //閫昏緫浣胯兘鐨勫懡浠� + Send.switchLogic(currLogic); + } + catch { } + + }) + { IsBackground = true }.Start(); }; GetSelectIcon(logicView.frameLayout, currLogic); - //if (i==0)闄嶅簭鎺掑垪 - if (Logic.LogicList.Count - 1 == i) + if (i==0)//闄嶅簭鎺掑垪 + //if (Logic.LogicList.Count - 1 == i) { ///鏈�鍚庝竴涓窛绂绘渶搴曢儴12,鐣岄潰鏄剧ず鏁堟灉浣滅敤; vv.AddChidren(new FrameLayout { Height = Application.GetRealHeight(12) }); @@ -100,12 +110,12 @@ automationPage.AddChidren(btnTipNot); Button btnTipNotText = new Button() { - Y = btnTipNot.Bottom, - Height = Application.GetRealWidth(100), - TextID = StringId.TipNotOpen, + Y = btnTipNot.Bottom + Application.GetRealHeight(16), + Height = Application.GetRealHeight(20), + TextID = StringId.logicnull, TextAlignment = TextAlignment.Center, - TextColor = CSS.CSS_Color.TextualColor, - TextSize = CSS.CSS_FontSize.PromptFontSize_FirstLevel, + TextSize = LogicView.TextSize.text14, + TextColor = CSS.CSS_Color.textConfirmColor, }; automationPage.AddChidren(btnTipNotText); } @@ -199,7 +209,6 @@ } return weekTextName.TrimEnd(','); } - /// <summary> /// 鑾峰彇姣忔湀鐨勫瓧绗︿覆 -- Gitblit v1.8.0