| | |
| | | brand = integratedBrand; |
| | | } |
| | | |
| | | public void LoadPage() |
| | | public void LoadPage(VerticalRefreshLayout refreshView) |
| | | { |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.AddDevice)).LoadTopView(); |
| | | bodyView.BackgroundColor = CSS_Color.BackgroundColor; |
| | |
| | | |
| | | |
| | | |
| | | Load3tyBrandDeviceList(); |
| | | Load3tyBrandDeviceList(refreshView); |
| | | |
| | | contentView.BeginHeaderRefreshingAction = () => |
| | | { |
| | | contentView.EndHeaderRefreshing(); |
| | | Load3tyBrandDeviceList(); |
| | | Load3tyBrandDeviceList(refreshView); |
| | | }; |
| | | } |
| | | |
| | | void Load3tyBrandDeviceList() |
| | | void Load3tyBrandDeviceList(VerticalRefreshLayout refreshView) |
| | | { |
| | | var waitPage = new Loading(); |
| | | waitPage.Start(); |
| | |
| | | var revData = Newtonsoft.Json.JsonConvert.DeserializeObject<List<IntegratedBrandDevice>>(pack.Data.ToString()); |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | LoadRow(revData); |
| | | LoadRow(revData, refreshView); |
| | | }); |
| | | } |
| | | else |
| | |
| | | { IsBackground = true }.Start(); |
| | | } |
| | | |
| | | void LoadRow(List<IntegratedBrandDevice> deviceList) |
| | | void LoadRow(List<IntegratedBrandDevice> deviceList, VerticalRefreshLayout refreshView) |
| | | { |
| | | contentView.RemoveAll(); |
| | | bool isFrist = true; |
| | |
| | | case SPK.IrModule: |
| | | var form = new AddMiniRemoteControlDirection1Page(); |
| | | form.AddForm(); |
| | | form.AddDeviceEvent = (functionObj) => { |
| | | refreshView.BeginHeaderRefreshing(); |
| | | }; |
| | | break; |
| | | } |
| | | }; |