| | |
| | | //{ IsBackground = true }.Start(); |
| | | Common.ApiUtlis.Ins.DownloadData(); |
| | | |
| | | GoUserPage(true); |
| | | GoUserPage(false,true); |
| | | } |
| | | } |
| | | } |
| | |
| | | /// </summary> |
| | | /// <param name="isFirstOpen">如果是第一次启动 检测校验密码</param> |
| | | /// <param name="pageShowEvent">主页显示之后触发的事件(没有住宅的话,则不会触发)</param> |
| | | public static void GoUserPage(bool isFirstOpen = false, Action pageShowEvent = null) |
| | | public static void GoUserPage(bool downloadData , bool isFirstOpen = false, Action pageShowEvent = null) |
| | | { |
| | | //加载Loading效果 |
| | | var waitPage = new Loading(); |
| | | BaseView.AddChidren(waitPage); |
| | | waitPage.Start("sdfghjkl");// (Language.StringByID(StringId.PleaseWait)); |
| | | waitPage.Start(Language.StringByID(StringId.PleaseWait)); |
| | | |
| | | //当没有住宅时,不能让它往下走 |
| | | if (UserInfo.Current.regionList.Count == 0) |
| | |
| | | MainPage.Log($"GoUserPage : {ex.Message}"); |
| | | }finally |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | ///初始化app数据 |
| | | InitializationData(); |
| | | }); |
| | | //Application.RunOnMainThread(() => |
| | | //{ |
| | | // ///初始化app数据 |
| | | // Common.ApiUtlis.Ins.DownloadData(); |
| | | //}); |
| | | } |
| | | }).Start(); |
| | | } |
| | |
| | | /// <summary> |
| | | /// 初始化app所需要的数据 |
| | | /// </summary> |
| | | public static void InitializationData() |
| | | public static void InitializationData1() |
| | | { |
| | | //new System.Threading.Thread(() => |
| | | //{ |
| | |
| | | //}) |
| | | //{ IsBackground = true }.Start(); |
| | | |
| | | #region 读取本地数据 |
| | | //读取音乐信息 |
| | | UI.Music.A31MusicModel.ReadMusicStates(); |
| | | //搜索网关 |
| | | DriverLayer.Control.Ins.SearchLoaclGateway(); |
| | | #endregion |
| | | } |
| | | |
| | | /// <summary> |