From 063cbc112d293883a05980ef62054b2909e33a39 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期五, 19 三月 2021 09:41:50 +0800 Subject: [PATCH] 2021-3-19-1 --- 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