From efad979b6fae76fb37a4de7e94e6bac0a85cb72c Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期二, 30 十一月 2021 13:14:28 +0800 Subject: [PATCH] 2021-11-30 1.修复乐橙Android,没调用拒接接口问题。 --- HDL_ON/UI/UI2/FuntionControlView/ArmCenter/ArmCenterPage.cs | 21 ++++++++++++--------- 1 files changed, 12 insertions(+), 9 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/ArmCenterPage.cs b/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/ArmCenterPage.cs index c3506ee..03fb2c6 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/ArmCenterPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/ArmCenterPage.cs @@ -45,6 +45,14 @@ /// </summary> List<ArmDiyView> armDiyViewList = new List<ArmDiyView>(); + + Action refreshAction = null; + + public ArmCenterPage(Action action) + { + refreshAction = action; + bodyView = this; + } public ArmCenterPage() { bodyView = this; @@ -141,20 +149,13 @@ BackgroundColor = CSS_Color.MainColor, TextAlignment = TextAlignment.Center, TextColor = CSS_Color.MainBackgroundColor, - Text = "鎾ら槻", + TextID = StringId.chefang,// = "鎾ら槻", Radius = (uint)Application.GetRealWidth(20), Gravity = Gravity.CenterHorizontal, }; disarmView.AddChidren(btnDisarm); + btnDisarm.MouseUpEventHandler = (sender, e) => { - //foreach (var temp in FunctionList.List.securities) - //{ - // if (temp.status == "enable") - // { - // Control.Ins.ControlSecurity(temp, "disable"); - // break; - // } - //} if(InDefenseMode!= null) { Control.Ins.ControlSecurity(InDefenseMode, "disable"); @@ -444,6 +445,8 @@ { if (bodyView != null) { + bodyView.refreshAction?.Invoke(); + //甯冮槻 if (updataTemp.status == "enable") { -- Gitblit v1.8.0