| | |
| | | { |
| | | btnComfirm.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | brand_Iot.hasAuthorization = true; |
| | | boundAction?.Invoke(); |
| | | this.RemoveFromParent(); |
| | | var page = new Iot_BrandFunctionListPage(brand_Iot); |
| | | page.unboundAction = unboundAction; |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | |
| | | Action action = () => { |
| | | brand_Iot.hasAuthorization = true; |
| | | boundAction?.Invoke(); |
| | | this.RemoveFromParent(); |
| | | var page = new Iot_BrandFunctionListPage(brand_Iot); |
| | | page.unboundAction = unboundAction; |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | |
| | | var page = new Iot_AuthorizedPage(brand_Iot,action); |
| | | page.LoadView(); |
| | | |
| | | |
| | | |
| | | }; |
| | | } |
| | | else |
| | |
| | | }); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | dialog.Close(); |
| | | new Alert("", "操作失败", "").Show(); |
| | | } |
| | | } |
| | | catch { } |
| | | finally |