HDL Home App 第二版本 旧平台金堂用 正在使用
xm
2020-08-14 a45fe56aeeac8f28a9891b83362954067c8166dc
ZigbeeApp/Shared/Phone/UserCenter/Residence/ResidenceListForm.cs
@@ -124,7 +124,7 @@
        {
            //获取住宅信息
            var Pra = new GetResidenceInfoPra();
            string resultData = UserCenterLogic.GetResponseDataByRequestHttps("App/GetHomePager", false, Pra, new List<string> { "NotCheck" });
            string resultData = UserCenterLogic.GetResponseDataByRequestHttps("App/GetHomePager", false, Pra, new List<string> { "NotCheck" }, false);
            if (string.IsNullOrEmpty(resultData) == true)
            {
                return false;
@@ -220,13 +220,16 @@
                            //检测本地有没有这个住宅
                            this.CheckIsExsitResidence(info);
                            HdlResidenceLogic.Current.SwitchResidence(info.Id);
                            var result = HdlResidenceLogic.Current.SwitchResidence(info.Id);
                            HdlThreadLogic.Current.RunMain(() =>
                            {
                                //重新刷新列表
                                this.listView.RemoveAll();
                                this.SetResidenceInfo(2);
                                if (result == true)
                                {
                                    //重新刷新列表
                                    this.listView.RemoveAll();
                                    this.SetResidenceInfo(2);
                                }
                                //关闭进度条
                                this.CloseProgressBar();
                            });
@@ -344,13 +347,16 @@
                    {
                        HdlThreadLogic.Current.RunThread(() =>
                        {
                            HdlResidenceLogic.Current.SwitchResidence(i_home.Id);
                            var result = HdlResidenceLogic.Current.SwitchResidence(i_home.Id);
                            HdlThreadLogic.Current.RunMain(() =>
                            {
                                //重新刷新列表
                                this.listView.RemoveAll();
                                this.SetResidenceInfo(3);
                                if (result == true)
                                {
                                    //重新刷新列表
                                    this.listView.RemoveAll();
                                    this.SetResidenceInfo(3);
                                }
                                //关闭进度条
                                this.CloseProgressBar();
                            });