| | |
| | | if (Config.Instance.IsLogin) |
| | | { |
| | | //显示启动页 |
| | | this.ShowLoginLoadView(); |
| | | CommonPage.Loading.Start(); |
| | | |
| | | UserCenter.HdlThreadLogic.Current.RunThread(() => |
| | |
| | | {
|
| | | var homes = UserCenter.HdlResidenceLogic.Current.GetHomeListsFromDb(true);
|
| | | //刷新个人中心的内存及线程
|
| | | UserCenter.UserCenterLogic.InitUserCenterMenmoryAndThread();
|
| | | bool result = UserCenter.UserCenterLogic.InitUserCenterMenmoryAndThread();
|
| | | //启动ZigBee
|
| | | ZigBee.Common.Application.Init();
|
| | |
|
| | | UserCenter.HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | CommonPage.Instance.RemoveViewByTag("Login");
|
| | | UserPage.Instance.ReFreshControl();
|
| | | CommonPage.Loading.Hide();
|
| | | if (result == true)
|
| | | {
|
| | | //false:开启了调试功能
|
| | | UserPage.Instance.ReFreshControl();
|
| | | }
|
| | | });
|
| | | }
|
| | | else
|
| | |
| | | Shared.Common.CommonPage.Instance.AddChidren(accountLogin); |
| | | accountLogin.ShowForm(); |
| | | } |
| | | } |
| | | |
| | | /// <summary>
|
| | | /// 显示启动页
|
| | | /// </summary> |
| | | public void ShowLoginLoadView() |
| | | { |
| | | var loginLoad = new LoginLoading { }; |
| | | CommonPage.Instance.AddChidren(loginLoad); |
| | | loginLoad.Show(); |
| | | } |
| | | |
| | | /// <summary> |