From b822232f0743d22e5bd3847eb993894bf090b214 Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期二, 02 七月 2024 15:33:48 +0800
Subject: [PATCH] 备份

---
 HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/DeviceListPage.cs |   26 ++++++++++++++++++++++++--
 1 files changed, 24 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 92c14e9..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),
@@ -201,6 +220,9 @@
                                 contentView.BeginHeaderRefreshing();
                             };
                             break;
+                        default:
+                            btnRight.Visible = false;
+                            break;
                     }
                 };
 

--
Gitblit v1.8.0