| | |
| | | /// <summary> |
| | | /// 版本号 |
| | | /// </summary> |
| | | public static string VersionString = "1.3.1103"; |
| | | public static string VersionString = "1.3.1123"; |
| | | ///// <summary> |
| | | ///// 客户端类型 |
| | | ///// </summary> |
| | |
| | | |
| | | BaseView = Application.MainPage; |
| | | Application.MainPage.BackgroundColor = CSS_Color.MainBackgroundColor; |
| | | |
| | | |
| | | //#region 测试 |
| | | //var ddd = new UI.test.TestDialog(); |
| | | //ddd.InitView(); |
| | |
| | | { |
| | | Entity.FunctionList.List.Clear(); |
| | | Entity.SpatialInfo.CurrentSpatial.Clear(); |
| | | ///等待获取住宅信息 |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | if (waitPage != null) |
| | | { |
| | | waitPage.RemoveFromParent(); |
| | | waitPage = null; |
| | | } |
| | | ///等待获取住宅信息 |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | if (waitPage != null) |
| | | { |
| | | waitPage.RemoveFromParent(); |
| | | waitPage = null; |
| | | } |
| | | |
| | | //跳转页面---- |
| | | UserBasePage = new UserPage(); |
| | | BasePageView.AddChidren(UserBasePage); |
| | | UserBasePage.LoadPage(); |
| | | BasePageView.PageIndex = 0; |
| | | //跳转页面---- |
| | | UserBasePage = new UserPage(); |
| | | BasePageView.AddChidren(UserBasePage); |
| | | UserBasePage.LoadPage(); |
| | | BasePageView.PageIndex = 0; |
| | | |
| | | if (isFirstOpen) |
| | | { |
| | | //启动密码验证 |
| | | new AppUnlockPage().LoadPage(isFirstOpen); |
| | | } |
| | | //主页加载完成,回调事件 |
| | | pageShowEvent?.Invoke(); |
| | | pageShowEvent = null; |
| | | }); |
| | | if (isFirstOpen) |
| | | { |
| | | //启动密码验证 |
| | | new AppUnlockPage().LoadPage(isFirstOpen); |
| | | } |
| | | //主页加载完成,回调事件 |
| | | pageShowEvent?.Invoke(); |
| | | pageShowEvent = null; |
| | | }); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | |
| | | finally |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | if (downloadData) |
| | | { |
| | | DB_ResidenceData.Instance.EixtAccount(); |
| | | ///初始化app数据 |
| | | Common.ApiUtlis.Ins.DownloadData(); |
| | | }; |
| | | }); |
| | | { |
| | | if (downloadData) |
| | | { |
| | | DB_ResidenceData.Instance.EixtAccount(); |
| | | ///初始化app数据 |
| | | Common.ApiUtlis.Ins.DownloadData(); |
| | | }; |
| | | }); |
| | | } |
| | | }).Start(); |
| | | |
| | |
| | | if (BasePageView == null || BasePageView.ChildrenCount <= 1) |
| | | { |
| | | result = 2;//无法再后退,可以执行退到桌面 |
| | | } |
| | | } |
| | | if (BasePageView.ChildrenCount > 1) |
| | | { |
| | | int index = BasePageView.ChildrenCount - 1; |
| | |
| | | { |
| | | var loading = view as Loading; |
| | | if (loading.CurStatus == false)//有一些等待界面隐藏了,但是没有移除到,需要先移除 |
| | | { |
| | | { |
| | | loading.RemoveFromParent(); |
| | | result = LoadEvent_BackAction(); |
| | | } |
| | | else |
| | | { |
| | | result = 1;//正在等待某些操作 |
| | | } |
| | | } |
| | | } |
| | | else |
| | | { |
| | |
| | | else |
| | | { |
| | | result = 2;//无法再后退,可以执行退到桌面 |
| | | } |
| | | } |
| | | }); |
| | | return result; |
| | | } |
| | |
| | | public static void Log(string msg) |
| | | { |
| | | #if DEBUG |
| | | Console.WriteLine(msg); |
| | | Console.WriteLine(msg); |
| | | #endif |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | } |
| | | } |