From 83df0ebfbd306d0fb5a51a21a7ef2271c0c507ec Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期二, 09 三月 2021 19:39:26 +0800
Subject: [PATCH] 2021-3-9-1

---
 HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/PirMain.cs |   24 +++++++++++++++---------
 1 files changed, 15 insertions(+), 9 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/PirMain.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/PirMain.cs
index 902b7ee..b1e7b74 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/PirMain.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/PirMain.cs
@@ -135,14 +135,7 @@
             ///绾㈠瀹濈偣鍑讳簨浠�
             FrameLayout clickFLayout = new FrameLayout();
             pirDeviceFLayout.AddChidren(clickFLayout);
-            clickFLayout.MouseUpEventHandler += (sender, e) =>
-            {
-
-                DeviceSet deviceSet = new DeviceSet();
-                MainPage.BasePageView.AddChidren(deviceSet);
-                deviceSet.Show();
-                MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
-            };
+           
 
             FrameLayout deviceListFLayout = new FrameLayout();
             deviceListFLayout.Y = pirDeviceFLayout.Bottom + Application.GetRealHeight(12);
@@ -282,6 +275,19 @@
 
             };
 
+            clickFLayout.MouseUpEventHandler += (sender, e) =>
+            {
+
+                DeviceSet deviceSet = new DeviceSet();
+                MainPage.BasePageView.AddChidren(deviceSet);
+                deviceSet.Show(() => {
+                    if (Pir.currPir != null)
+                    {
+                        deviceNameBtn.Text = Pir.currPir.name;
+                    }
+                });
+                MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+            };
             #endregion
             int line = 0;
             for (int i = 1, j = 0; i <= 7; i++, j++)
@@ -451,7 +457,7 @@
                 case 2:
                     {
                         //鐢佃
-                        type = "tv-" + SPK.ElectricTV;
+                        type = "tv-" + SPK.TvIr;
                     }
                     break;
                 case 3:

--
Gitblit v1.8.0