| | |
| | | { |
| | | try |
| | | { |
| | | UserPage.Instance.Fresh(); |
| | | HomePage.Instance.ShowLoginLoadView(); |
| | | |
| | | CommonPage.Loading.Start(Language.StringByID(R.MyInternationalizationString.Logining)); |
| | | Action action = async () => { |
| | | var loginSuccess = await HomePage.Instance.LoginByPWDAsync(account, password); |
| | |
| | | { |
| | | BindAuthUser(Config.Instance.Guid, OpenID); |
| | | } |
| | | ZigBee.Common.Application.Init(); |
| | | |
| | | //登录成功 |
| | | var homes = await House.GetHomeLists(); |
| | | |
| | | var homes = await House.GetHomeLists();
|
| | | ZigBee.Common.Application.Init(); |
| | | //刷新个人中心的内存及线程 |
| | | await UserCenter.UserCenterLogic.InitUserCenterMenmoryAndThread(); |
| | | |
| | | Shared.Common.Room.CanInitAllRoom = true; |
| | | Shared.Common.Room.InitAllRoom(); |
| | | |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | UserPage.Instance.Fresh(); |
| | | CommonPage.Loading.Hide(); |
| | | this.RemoveFromParent(); |
| | | CommonPage.Instance.RemoveViewByTag("Register"); |
| | | CommonPage.Instance.RemoveViewByTag("Login"); |
| | | UserPage.Instance.Fresh(); |
| | | }); |
| | | }) |
| | | { IsBackground = true }.Start(); |