| | |
| | | |
| | | public void LoadPage() |
| | | { |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.AddDevice)).LoadTopView(); |
| | | Action<string,string> action = (s,a) => { |
| | | var page = new AddDevciePage(brand); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.Devices)).LoadTopView_AddIcon("3ty",action); |
| | | bodyView.BackgroundColor = CSS_Color.BackgroundColor; |
| | | |
| | | contentView = new VerticalRefreshLayout() |
| | |
| | | |
| | | void LoadRow(List<Function> deviceList) |
| | | { |
| | | deviceList.Add(new Function() { name ="测试红外宝",spk = SPK.IrModule}); |
| | | |
| | | contentView.RemoveAll(); |
| | | bool isFrist = true; |
| | | foreach (var device in deviceList) |