From ea0b1e8e5f43c5fd0a7d479e25ede3b8cbea464a Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期一, 02 十二月 2024 17:17:19 +0800 Subject: [PATCH] tcp;可视对讲; --- HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs | 72 ++++++++++++++++++++++++++++------- 1 files changed, 57 insertions(+), 15 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs index 2d795cf..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,15 +328,12 @@ 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, }; - if(Language.CurrentLanguage != "Chinese") - { - btnPre.Text = "Previous"; - } + bottomOptionView.AddChidren(btnPre); btnPre.MouseUpEventHandler = (sender33, e33) => { if (pageIndex < 1) @@ -329,15 +351,11 @@ 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, }; - if(Language.CurrentLanguage != "Chinese") - { - btnNext.Text = "Next"; - } bottomOptionView.AddChidren(btnNext); btnNext.MouseUpEventHandler = (sender33, e33) => { @@ -414,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(); }; } @@ -438,9 +480,9 @@ //鍒锋柊浣忓畢鏁版嵁 Common.ApiUtlis.Ins.DownloadData(); #if __IOS__ - //var sdm = new SiriKit.SceneDateManager(); - //sdm.RegionUrl = DB_ResidenceData.Instance.CurrentRegion.regionUrl; - //sdm.HomeId = DB_ResidenceData.Instance.CurrentRegion.id; + var sdm = new SiriKit.SceneDateManager(); + sdm.RegionUrl = DB_ResidenceData.Instance.CurrentRegion.regionUrl; + sdm.HomeId = DB_ResidenceData.Instance.CurrentRegion.id; #endif } #endregion -- Gitblit v1.8.0