| | |
| | | { |
| | | FrameLayout bodyView; |
| | | VerticalRefreshLayout contentView; |
| | | List<IntegratedBrand> brandList = new List<IntegratedBrand>(); |
| | | public AddThirdPartyBrandListpage() |
| | | List<IntegratedBrand> brandList; |
| | | public AddThirdPartyBrandListpage(List<IntegratedBrand> list) |
| | | { |
| | | bodyView = this; |
| | | brandList = list; |
| | | } |
| | | |
| | | public void LoadPage() |
| | |
| | | Button btnLine = new Button() |
| | | { |
| | | X = Application.GetRealWidth(56), |
| | | Y = Application.GetRealHeight(49), |
| | | Width = Application.GetRealWidth(303), |
| | | Height = 1, |
| | | BackgroundColor = CSS_Color.DividingLineColor, |
| | |
| | | row.AddChidren(btnName); |
| | | //下载第三方品牌icon |
| | | ImageUtlis.Current.Load3tyBrandIconImages(brand.brandName, brand.brandIcon, btnIcon); |
| | | |
| | | btnName.MouseUpEventHandler = (sender, e) => { |
| | | var page = new AddDevciePage(brand); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | } |
| | | |
| | | } |
| | |
| | | } |
| | | }) { IsBackground = true }.Start(); |
| | | } |
| | | /// <summary> |
| | | /// 跳转添加设备界面 |
| | | /// </summary> |
| | | /// <param name="bandType">品牌类型</param> |
| | | void SkipPage_AddDevice() |
| | | { |
| | | |
| | | } |
| | | } |
| | | } |