From acc8caee31c4be90bd38d1af18136b0e84f6fe94 Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期五, 27 九月 2024 14:01:19 +0800
Subject: [PATCH] Merge branch 'feature/v2.7_迭代' into feature/V2.7_Google

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

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs
index f27995e..11ce006 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPageBLL.cs
@@ -225,8 +225,31 @@
                             var regionId = (string)btnHomeName.Tag;
                             dialog.Close();
                             LoadEvent_ChangeCurHome(home);
-                            LoadContentView();
-                            HDL_ON.UI.UI2.FuntionControlView.VideoDoorLock.CommonMethod.Current.ChangeCurrHome(home);
+                            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();
@@ -409,8 +432,31 @@
                     var regionId = (string)btnHomeName.Tag;
                     dialog.Close();
                     LoadEvent_ChangeCurHome(home);
-                    LoadContentView();
-                    HDL_ON.UI.UI2.FuntionControlView.VideoDoorLock.CommonMethod.Current.ChangeCurrHome(home);
+                    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