| | |
| | | } |
| | | #endregion |
| | | |
| | | //public static void CleanPageView () |
| | | //{ |
| | | // FavoriteRoom.RemoveAll (); |
| | | // FavoriteBodyView.RemoveAll (); |
| | | // FavoritePageView.RemoveAll (); |
| | | // DeviceView.RemoveAll (); |
| | | // DeviceBodyView.RemoveAll (); |
| | | // DevicePageView.RemoveAll (); |
| | | // RoomBodyView.RemoveAll (); |
| | | // RoomPageView.RemoveAll (); |
| | | // SettingView.RemoveAll (); |
| | | // SettingBodyView.RemoveAll (); |
| | | // SettingPageView.RemoveAll (); |
| | | // UserPageView.RemoveAll (); |
| | | //} |
| | | static void CleanPageView (FrameLayout BodyView) |
| | | { |
| | | FavoriteRoom.RemoveAll (); |
| | |
| | | UserConfig.Instance.TipVersionBackup = UserConfig.Instance.VersionNumber; |
| | | } else { |
| | | //if (UserConfig.Instance.GatewayList.Count == 0) { |
| | | //2020-01-11 Mac没绑定并且为主账号 是否来只登录界面 |
| | | //2020-01-11 Mac没绑定 是否来只登录界面 |
| | | if (bFromLogin) { |
| | | if (!UserConfig.Instance.CheckHomeGatewaysNotEmpty () && MainPage.LoginUser.AccountType == 0) { |
| | | if (!UserConfig.Instance.CheckHomeGatewaysNotEmpty ()) { |
| | | if (guidePageView.Parent != null) { |
| | | guidePageView.RemoveAll (); |
| | | guidePageView.RemoveFromParent (); |
| | | } |
| | | UserHomePage.FrameLayoutMain.AddChidren (guidePageView); |
| | | var guide = new GuideAddResidence (); |
| | | guide.IsHideBack = true; |
| | | guidePageView.AddChidren (guide); |
| | | |
| | | guide.ShowHomeList (true); |
| | | guide.ShowHomeView (true); |
| | | guidePageView.PageIndex = 0; |
| | | MainPage.LoginUser.LastTime = DateTime.MinValue; |
| | | MainPage.LoginUser.SaveUserInfo (); |
| | | guidePageView.PageChange += (ddf, ffd) => { |
| | | if (ffd < guidePageView.ChildrenCount - 1) { |
| | | guidePageView.PageChange += (sender, e) => { |
| | | if (e < guidePageView.ChildrenCount - 1) { |
| | | guidePageView.GetChildren (guidePageView.ChildrenCount - 1).RemoveFromParent (); |
| | | } |
| | | }; |