| | |
| | | brand = integratedBrand; |
| | | } |
| | | |
| | | |
| | | public void LoadPage() |
| | | { |
| | | Action<string, string> action = (s, a) => |
| | |
| | | page.LoadPage(contentView); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.Devices)).LoadTopView_AddIcon("3ty", action); |
| | | var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.Devices)); |
| | | topView.maginY = 10; |
| | | topView.LoadTopView_AddIcon("3ty", action); |
| | | bodyView.BackgroundColor = CSS_Color.BackgroundColor; |
| | | |
| | | contentView = new VerticalRefreshLayout() |
| | | { |
| | | Y = Application.GetRealHeight(64), |
| | | Height = Application.GetRealHeight(667 - 64), |
| | | Y = Application.GetRealHeight(64+10), |
| | | Height = Application.GetRealHeight(667 - 64-10), |
| | | VerticalScrollBarEnabled = false, |
| | | }; |
| | | bodyView.AddChidren(contentView); |
| | |
| | | { |
| | | var pm = new HttpServerRequest(); |
| | | var pack = pm.Get3TyBrandBindDeviceList(brand.productPlatform, brand.productBrand); |
| | | if (pack.Code == DAL.Server.StateCode.SUCCESS) |
| | | if (pack.Code == StateCode.SUCCESS) |
| | | { |
| | | var revData = Newtonsoft.Json.JsonConvert.DeserializeObject<Function3tyBrandObj>(pack.Data.ToString()); |
| | | |
| | |
| | | bool isFrist = true; |
| | | foreach (var device in deviceList) |
| | | { |
| | | if (!this.CheckSupportDevice(device)) |
| | | { |
| | | continue; |
| | | } |
| | | var row = new RowLayout() |
| | | { |
| | | Height = Application.GetRealHeight(50), |
| | |
| | | { |
| | | |
| | | if (function == null) return false; |
| | | if (function.spk == SPK.VideoDoorLock) |
| | | { |
| | | return false; |
| | | } |
| | | return true; |
| | | |
| | | } |