From 0c1e29166e6b188939c092d16f87ce2a27662c5f Mon Sep 17 00:00:00 2001
From: tzy <hxb@hdlchina.com.cn>
Date: 星期五, 26 三月 2021 10:11:38 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/temp-wxr' into dev-tzy

---
 HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs |   15 ++++-----------
 1 files changed, 4 insertions(+), 11 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs
index 626306a..00f6588 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs
@@ -25,7 +25,7 @@
             {
                 var page = new AddDevciePage(brand);
                 MainPage.BasePageView.AddChidren(page);
-                page.LoadPage();
+                page.LoadPage(contentView);
                 MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
             };
             new TopViewDiv(bodyView, Language.StringByID(StringId.Devices)).LoadTopView_AddIcon("3ty", action);
@@ -46,6 +46,8 @@
                 contentView.EndHeaderRefreshing();
                 Load3tyBrandDeviceList();
             };
+
+            //contentView.BeginHeaderRefreshing();
         }
 
         void Load3tyBrandDeviceList()
@@ -150,16 +152,7 @@
                     switch (device.spk)
                     {
                         case SPK.IrModule:
-                            UI2.PersonalCenter.PirDevice.Method.GetPirDeviceList(this, () =>
-                            {
-                                Application.RunOnMainThread(() =>
-                                {
-                                    var page = new UI2.PersonalCenter.PirDevice.PirMain();
-                                    MainPage.BasePageView.AddChidren(page);
-                                    page.Show(device);
-                                    MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
-                                });
-                            });
+                            new UI2.PersonalCenter.PirDevice.Method().MainView(this, device,()=> {});
                             break;
                     }
                 };

--
Gitblit v1.8.0