From c5cb6840bd986bbd71a9ebc232bbf44ed0e1fc3d Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期四, 23 五月 2024 17:43:11 +0800 Subject: [PATCH] jpush更新完成 --- HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs | 67 +++++++++++++++++++++++++++++---- 1 files changed, 59 insertions(+), 8 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs index 7ed2eea..11ce006 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs @@ -225,7 +225,31 @@ var regionId = (string)btnHomeName.Tag; dialog.Close(); LoadEvent_ChangeCurHome(home); - LoadContentView(); + new System.Threading.Thread(() => { + try + { + while (true) + { + if (Common.ApiUtlis.Ins.DownloadDataComplete) + { + System.Threading.Thread.Sleep(100); + } + else + { + Application.RunOnMainThread(() => + { + LoadContentView(); + }); + break; + } + } + } + catch { } + { + + } + }) { IsBackground = true }.Start(); + }; } dialog.Show(); @@ -269,6 +293,7 @@ BorderColor = CSS.CSS_Color.DividingLineColor, BorderWidth = 3, TextColor = CSS.CSS_Color.TextualColor, + Radius = 1, }; searchView.AddChidren(searchTv); @@ -303,13 +328,14 @@ Width = Application.GetRealWidth(374 / 2), Height = Application.GetRealHeight(50) - 1, BackgroundColor = CSS.CSS_Color.MainBackgroundColor, - Text = "涓婁竴椤�", + TextID = StringId.PreviousPage, TextAlignment = TextAlignment.Center, TextColor = CSS.CSS_Color.TextualColor, TextSize = CSS.CSS_FontSize.TextFontSize, }; + bottomOptionView.AddChidren(btnPre); - btnPre.MouseUpEventHandler = (sender, e) => { + btnPre.MouseUpEventHandler = (sender33, e33) => { if (pageIndex < 1) { return; @@ -325,13 +351,14 @@ Width = Application.GetRealWidth(374 / 2), Height = Application.GetRealHeight(50) - 1, BackgroundColor = CSS.CSS_Color.MainBackgroundColor, - Text = "涓嬩竴椤�", + TextID = StringId.NextPage, TextAlignment = TextAlignment.Center, TextColor = CSS.CSS_Color.TextualColor, TextSize = CSS.CSS_FontSize.TextFontSize, }; + bottomOptionView.AddChidren(btnNext); - btnNext.MouseUpEventHandler = (sender, e) => { + btnNext.MouseUpEventHandler = (sender33, e33) => { pageIndex++; if (pageIndex > pageCount-1) { @@ -343,9 +370,9 @@ #endregion - searchTv.TextChangeEventHandler = (sender, e) => { + searchTv.TextChangeEventHandler = (sender33, e33) => { new System.Threading.Thread(() => { - newlist = UserInfo.Current.regionList.FindAll((obj) => obj.homeName.Contains(e)); + newlist = UserInfo.Current.regionList.FindAll((obj) => obj.homeName.Contains(e33)); pageCount = newlist.Count; pageIndex = 0; Application.RunOnMainThread(() => { @@ -405,7 +432,31 @@ var regionId = (string)btnHomeName.Tag; dialog.Close(); LoadEvent_ChangeCurHome(home); - LoadContentView(); + new System.Threading.Thread(() => { + try + { + while (true) + { + if (Common.ApiUtlis.Ins.DownloadDataComplete) + { + System.Threading.Thread.Sleep(100); + } + else + { + Application.RunOnMainThread(() => + { + LoadContentView(); + }); + break; + } + } + } + catch { } + { + + } + }) + { IsBackground = true }.Start(); }; } -- Gitblit v1.8.0