wxr
2024-09-27 acc8caee31c4be90bd38d1af18136b0e84f6fe94
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();
                };
            }