From f9181a9c8125136f597add7c30cb2ff508d54ba7 Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期四, 25 七月 2024 17:34:32 +0800
Subject: [PATCH] 2024年07月25日17:33:40

---
 HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs |   66 +++++++++++++++++++++++++++------
 1 files changed, 54 insertions(+), 12 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs
index e503084..9995fae 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();
+                            
                             HDL_ON.UI.UI2.FuntionControlView.VideoDoorLock.CommonMethod.Current.ChangeCurrHome(home);
                         };
                     }
@@ -270,6 +294,7 @@
                         BorderColor = CSS.CSS_Color.DividingLineColor,
                         BorderWidth = 3,
                         TextColor = CSS.CSS_Color.TextualColor,
+                        Radius = 1,
                     };
                     searchView.AddChidren(searchTv);
 
@@ -304,15 +329,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)
@@ -330,15 +352,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) => {
@@ -415,7 +433,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();
                     HDL_ON.UI.UI2.FuntionControlView.VideoDoorLock.CommonMethod.Current.ChangeCurrHome(home);
                 };
             }

--
Gitblit v1.8.0