From f54a487bb42ac49bf81bd7b5eea311fc79231bc6 Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期四, 06 六月 2024 17:37:22 +0800
Subject: [PATCH] 备份
---
HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs | 23 +++++++++++++++++++++--
1 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs
index 881fab7..7858cdc 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs
@@ -15,6 +15,8 @@
VerticalRefreshLayout contentView;
IntegratedBrand brand;
+
+
public DeviceListPage(IntegratedBrand integratedBrand)
{
bodyView = this;
@@ -29,6 +31,16 @@
var page = new AddDevciePage(brand);
MainPage.BasePageView.AddChidren(page);
page.LoadPage(contentView);
+ page.addDeviceCallback = () => {
+ try
+ {
+ Load3tyBrandDeviceList();
+ }
+ catch (Exception ex)
+ {
+ MainPage.Log("error", "DeviceListPage : " + ex.Message);
+ }
+ };
MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
};
var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.Devices));
@@ -157,8 +169,15 @@
Height = Application.GetMinRealAverage(16),
UnSelectedImagePath = "Public/Right.png",
};
- row.AddChidren(btnRight);
-
+ if (device.spk.Contains(SPK.PeepholeEz)
+ || device.spk.Contains(SPK.Peephole)
+ || device.spk.Contains(SPK.Ev_Ipcam)
+ || device.spk.Contains(SPK.VideoDoorLock)
+ ) { }
+ else
+ {
+ row.AddChidren(btnRight);
+ }
Button btnName = new Button()
{
X = Application.GetRealWidth(56),
--
Gitblit v1.8.0