From c6b9f25f8e994125b6b211372fdc3b862a436666 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期三, 17 三月 2021 10:39:13 +0800
Subject: [PATCH] 2021-3-17-3

---
 HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/DeviceSet.cs |    5 ++++-
 1 files changed, 4 insertions(+), 1 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..a992d58 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/DeviceSet.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/DeviceSet.cs
@@ -53,7 +53,10 @@
                 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);
                 };

--
Gitblit v1.8.0