| | |
| | | VerticalRefreshLayout contentView; |
| | | |
| | | IntegratedBrand brand; |
| | | |
| | | |
| | | public DeviceListPage(IntegratedBrand integratedBrand) |
| | | { |
| | | bodyView = this; |
| | |
| | | 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)); |
| | |
| | | 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), |