From e64dd8689cf4bdf812b43a2f02e51c2100bedd02 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期二, 27 四月 2021 19:06:15 +0800 Subject: [PATCH] 2021-4-27-1 --- 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