wxr
2024-06-06 f54a487bb42ac49bf81bd7b5eea311fc79231bc6
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),