黄学彪
2020-12-17 9f326f4000847e6167d8166fa2f6a66f53cb3734
ZigbeeApp/Shared/Phone/Category/SelectHouseForm.cs
@@ -4,7 +4,7 @@
namespace Shared.Phone.Category
{
    public class SelectHouseForm : UserCenter.FrameLayoutBase
    public class SelectHouseForm : FrameLayoutBase
    {
        public Action<string> HouseAction;
@@ -70,8 +70,10 @@
            };
            changeHomeFL.AddChidren(scrolView);
            var houseCount = Config.Instance.HomeFilePathList.Count;
            if (Config.Instance.HomeFilePathList.Count > 0)
            //获取本地全部的住宅对象
            var listHouse = HdlResidenceLogic.Current.GetLocalResidenceList();
            var houseCount = listHouse.Count;
            if (houseCount > 0)
            {
                if (houseCount > 5)
                {
@@ -87,15 +89,9 @@
                    changeHomeFL.Height = this.GetPictrueRealSize(150 * (houseCount + 1));
                    scrolView.Height = this.GetPictrueRealSize(150 * houseCount);
                }
                foreach (var housePath in Config.Instance.HomeFilePathList)
                {
                    var home = UserCenter.HdlResidenceLogic.Current.GetHouseByFilePath(housePath);
                    if (home == null)
                    {
                        continue;
                    }
                    AddFloor(scrolView, home);
                foreach (var house in listHouse)
                {
                    AddFloor(scrolView, house);
                }
            }
        }