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

---
 HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/DeviceSet.cs |   14 ++++++++++++++
 1 files changed, 14 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..2b4880b 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,18 @@
             };
             #endregion
             UIView(vv);
+            topView.topIconBtn.MouseUpEventHandler += (sender, e) =>
+            {
+                var form = new AddMiniRemoteControlDirection1Page();
+                form.AddForm();
+                form.AddDeviceEvent += (device) =>
+                {
+                    var pir = device as Pir;
+                    Pir.pirDeviceList.Add(pir);
+                    UIView(vv);
+                };
+
+            };
 
         }
         /// <summary>

--
Gitblit v1.8.0