| | |
| | | UserMiddle.updateSensorhreadList.Clear (); |
| | | } |
| | | |
| | | public static void Init (bool isGuide = false) |
| | | //2020-01-11 |
| | | public static void Init (bool isGuide = false, bool bFromLogin = false) |
| | | { |
| | | if (MainPage.LoginUser == null) |
| | | MainPage.LoginUser = Newtonsoft.Json.JsonConvert.DeserializeObject<UserInfo> (System.Text.Encoding.UTF8.GetString (Shared.IO.FileUtils.ReadFile (UserInfo.GlobalRegisterFile))); |
| | |
| | | UserConfig.Instance.TipVersionBackup = UserConfig.Instance.VersionNumber; |
| | | } else { |
| | | //if (UserConfig.Instance.GatewayList.Count == 0) { |
| | | //2020-01-10 Mac没绑定并且为主账号 |
| | | //2020-01-11 Mac没绑定并且为主账号 是否来只登录界面 |
| | | if (bFromLogin) { |
| | | if (!UserConfig.Instance.CheckHomeGatewaysNotEmpty() && MainPage.LoginUser.AccountType == 0) { |
| | | UserHomePage.FrameLayoutMain.AddChidren (guidePageView); |
| | | var guide = new GuideAddResidence (); |
| | |
| | | }; |
| | | return; |
| | | } |
| | | } |
| | | InitHomePageView (); |
| | | //后台验证账号 |
| | | System.Threading.Tasks.Task.Run (() => { |