From 39cf2411b59772d56ee731f229f09ff472889bad Mon Sep 17 00:00:00 2001 From: hxb <hxb@hdlchina.com.cn> Date: 星期四, 22 九月 2022 15:12:04 +0800 Subject: [PATCH] Merge branch 'Dev-Branch' into hxb --- HDL_ON/UI/UI2/3-Intelligence/Automation/PublicInterface.cs | 21 ++++++++++++++------- 1 files changed, 14 insertions(+), 7 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/PublicInterface.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/PublicInterface.cs index ee921ce..0dc90c0 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/PublicInterface.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/PublicInterface.cs @@ -261,9 +261,10 @@ /// </summary> /// <param name="frame">鏄剧ず鍦ㄥ摢涓晫闈㈢殑鐖舵帶浠�</param> /// <param name="list">鏄剧ず鏁版嵁婧�</param> + /// <param name="stateList">涔嬪墠鐘舵�佹暟鎹簮</param> /// <param name="titleText">鏍囬</param> /// <param name="action">杩斿洖鍊肩储寮曞��</param> - public void FrameOrVv(FrameLayout frame, List<string> list, List<string> stateList, int titleText, Action<int> action) + public void FrameOrVv(FrameLayout frame, List<string> list, List<string> stateList, string titleText, Action<int> action,bool isIcon=true) { int line = 0; @@ -284,7 +285,7 @@ frame.AddChidren(frameLayout); LogicView.DateView view = new LogicView.DateView(); - view.btnTitle.TextID = titleText; + view.btnTitle.Text = titleText; view.FLayoutView(frameLayout, line); view.btnCancel.MouseUpEventHandler += (sender, e) => { @@ -310,7 +311,7 @@ verticalRefresh.EndHeaderRefreshing(); }; - if (list.Count == 0) + if (list.Count == 0&&isIcon) { Button btnTipNot = new Button { @@ -367,12 +368,18 @@ verticalRefresh.AddChidren(checkView.FLayoutView()); } - if (stateList.Contains(strName)) - { - checkView.btnCheckIcon.IsSelected = true; - } checkView.btnText.Text = strName; checkView.btnClick.Tag = i;//鏍囪 + + if (stateList.Contains(strName)) + { + //checkView.btnCheckIcon.IsSelected = true; + + checkBtn.IsSelected = false; + checkView.btnCheckIcon.IsSelected = true; + checkBtn = checkView.btnCheckIcon; + checkBtn.Tag = checkView.btnClick.Tag.ToString(); + } //鐐瑰嚮浜嬩欢 checkView.btnClick.MouseUpEventHandler += (sender1, e1) => { -- Gitblit v1.8.0