| | |
| | | /// </summary> |
| | | public static void GoLoginPage(UserInfo userInfo = null) |
| | | { |
| | | BaseView.RemoveAll(); |
| | | try |
| | | { |
| | | for (int i = 0; i < BaseView.ChildrenCount; i++) |
| | | { |
| | | BaseView.GetChildren(i).RemoveFromParent(); |
| | | } |
| | | } |
| | | catch { } |
| | | BaseView.BackgroundColor = CSS_Color.BackgroundColor; |
| | | var fisrtView = new UI.UI1Login.LoginPage(); |
| | | fisrtView.BackgroundColor = CSS_Color.MainBackgroundColor; |
| | |
| | | /// <param name="pageShowEvent">主页显示之后触发的事件(没有住宅的话,则不会触发)</param> |
| | | public static void GoUserPage(bool downloadData, bool isFirstOpen = false, Action pageShowEvent = null) |
| | | { |
| | | BaseView.RemoveAll(); |
| | | try |
| | | { |
| | | for (int i = 0; i < BaseView.ChildrenCount; i++) |
| | | { |
| | | BaseView.GetChildren(i).RemoveFromParent(); |
| | | } |
| | | } |
| | | catch { } |
| | | #region 后退事件 |
| | | BasePageView = new PageLayout(); |
| | | BasePageView.ScrollEnabled = false; |