From 47b841ed6c4d7dc03ff25bf74454fa41cd4e02a5 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期三, 17 三月 2021 11:08:49 +0800
Subject: [PATCH] Merge branch 'WJC' into temp-wxr

---
 HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/DeviceSet.cs |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/DeviceSet.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/DeviceSet.cs
index 6af3af1..a992d58 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/DeviceSet.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/DeviceSet.cs
@@ -23,7 +23,9 @@
             {
                 action();
                 this.RemoveFromParent();
+
             };
+
             VerticalRefreshLayout vv = new VerticalRefreshLayout();
             vv.Height = Application.GetRealHeight(667 - 64);
             vv.Y = Application.GetRealHeight(64);
@@ -45,6 +47,21 @@
             };
             #endregion
             UIView(vv);
+            topView.topIconBtn.MouseUpEventHandler += (sender, e) =>
+            {
+                var form = new AddMiniRemoteControlDirection1Page();
+                form.AddForm();
+                form.AddDeviceEvent += (device) =>
+                {
+                    Pir pir = new Pir();
+                    pir.name = device.name;
+                    pir.deviceId = device.deviceId;
+                    pir.sid = device.sid;
+                    Pir.pirDeviceList.Add(pir);
+                    UIView(vv);
+                };
+
+            };
 
         }
         /// <summary>

--
Gitblit v1.8.0