From d9894fc2e45d2521c78ad4c11dd9b549ec4f75ca Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期三, 23 十二月 2020 12:05:07 +0800 Subject: [PATCH] 2020-12-23-1 --- HDL_ON/UI/UI2/3-Intelligence/Automation/AddLogic.cs | 17 ++++++----------- 1 files changed, 6 insertions(+), 11 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/AddLogic.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/AddLogic.cs index 7bebd3c..5f5c102 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/AddLogic.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/AddLogic.cs @@ -153,12 +153,7 @@ ///鎴栧拰涓庣偣鍑讳簨浠� titleCondition.btnClick.MouseUpEventHandler += (sender, e) => { - FrameLayout fLayout = new FrameLayout - { - BackgroundColor = CSS.CSS_Color.viewTrans60lucence, - }; - this.AddChidren(fLayout); - AndOrMethod(fLayout, titleCondition.btnText); + AndOrMethod(titleCondition.btnText); }; ///鏉′欢娣诲姞鐐瑰嚮浜嬩欢 addInputIcon.btnClick.MouseUpEventHandler += (sen, e) => @@ -284,7 +279,7 @@ try { //鍙戦�佷慨鏀归�昏緫鍛戒护锛� - responsePackNew = Send.updateLogic(Logic.currlogic); + responsePackNew = Send.UpdateLogic(Logic.currlogic); } catch { } @@ -512,9 +507,8 @@ /// <summary> /// 婊¤冻鏉′欢 /// </summary> - /// <param name="fLayout">寮规涓绘帶浠�</param> /// <param name="button">鏄剧ず鏂囨湰</param> - public void AndOrMethod(FrameLayout fLayout, Button button) + public void AndOrMethod(Button button) { List<string> strList = new List<string> { Language.StringByID(StringId.andCondition), @@ -524,9 +518,11 @@ string currCondition = button.Text; PublicInterface conditionView = new PublicInterface(); - conditionView.SingleSelectionShow(fLayout, strList, Language.StringByID(StringId.meetTheCondition), currCondition + conditionView.SingleSelectionShow(this, strList, Language.StringByID(StringId.meetTheCondition), currCondition , (stateValue) => { + //鐣岄潰鏄剧ず閫変腑鍊� + button.Text = stateValue; if (stateValue == Language.StringByID(StringId.orCondition)) { Logic.currlogic.relation = "or"; @@ -535,7 +531,6 @@ { Logic.currlogic.relation = "and"; } - button.Text = stateValue; }); -- Gitblit v1.8.0