From dea10bee3b12994e153ae4b08e07d7314608684e Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期一, 22 三月 2021 09:06:54 +0800 Subject: [PATCH] 更新环境功能UI --- HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/DeviceSet.cs | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/DeviceSet.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/DeviceSet.cs index 2b4880b..57194ab 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/DeviceSet.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/DeviceSet.cs @@ -47,13 +47,16 @@ }; #endregion UIView(vv); - topView.topIconBtn.MouseUpEventHandler += (sender, e) => + topView.clickSetBtn.MouseUpEventHandler += (sender, e) => { var form = new AddMiniRemoteControlDirection1Page(); form.AddForm(); form.AddDeviceEvent += (device) => { - var pir = device as Pir; + Pir pir = new Pir(); + pir.name = device.name; + pir.deviceId = device.deviceId; + pir.sid = device.sid; Pir.pirDeviceList.Add(pir); UIView(vv); }; @@ -88,11 +91,13 @@ { pirView.stateIconBtn.IsSelected = true; pirView.stateTextBtn.IsSelected = true; + pirView.stateTextBtn.TextID = StringId.zaixian; } else { pirView.stateIconBtn.IsSelected = false; pirView.stateTextBtn.IsSelected = false; + pirView.stateTextBtn.TextID = StringId.lixian; } //鏍囪绾㈠瀹� pirView.clickBtn.Tag = pirDevice; -- Gitblit v1.8.0