| | |
| | | bool isFrist = true; |
| | | foreach (var brand in brandList) |
| | | { |
| | | if(brand.productPlatform == "HaiLin")//子晴需要隐藏这个入口,由调试软件上传数据 2023-03-09 17:20:33 |
| | | if (brand.productPlatform == "HaiLin")//子晴需要隐藏这个入口,由调试软件上传数据 2023-03-09 17:20:33 |
| | | { |
| | | continue; |
| | | }else if(brand.productPlatform == "TUYA") { |
| | | if(DB_ResidenceData.Instance.CurrentRegion.regionUrl != "https://test-gz.hdlcontrol.com" && |
| | | } |
| | | else if (brand.productPlatform == "TUYA") |
| | | { |
| | | if (DB_ResidenceData.Instance.CurrentRegion.regionUrl != "https://test-gz.hdlcontrol.com" && |
| | | DB_ResidenceData.Instance.CurrentRegion.regionUrl != "https://china-gateway.hdlcontrol.com") |
| | | { |
| | | continue; |
| | |
| | | }; |
| | | contentView.AddChidren(row); |
| | | |
| | | //if (isFrist) |
| | | //{ |
| | | // isFrist = false; |
| | | //} |
| | | //else |
| | | |
| | | Button btnLine = new Button() |
| | | { |
| | | Button btnLine = new Button() |
| | | { |
| | | Y = Application.GetRealHeight(86), |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Width = Application.GetRealWidth(343), |
| | | Height = 1, |
| | | BackgroundColor = CSS_Color.DividingLineColor, |
| | | }; |
| | | row.AddChidren(btnLine); |
| | | } |
| | | Y = Application.GetRealHeight(86), |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Width = Application.GetRealWidth(343), |
| | | Height = 1, |
| | | BackgroundColor = CSS_Color.DividingLineColor, |
| | | }; |
| | | row.AddChidren(btnLine); |
| | | |
| | | ImageView btnIcon = new ImageView() |
| | | { |
| | |
| | | //下载第三方品牌icon |
| | | ImageUtlis.Current.Load3tyBrandIconImages(brand.brandName, brand.brandIcon, btnIcon); |
| | | |
| | | EventHandler<MouseEventArgs> eventHandler = (sender, e) => { |
| | | |
| | | EventHandler<MouseEventArgs> eventHandler = (sender, e) => |
| | | { |
| | | var page = new DeviceListPage(brand); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage(); |