From c6b35c3138b944830b5336bf610f918154dd47c7 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期六, 12 十月 2019 15:45:10 +0800
Subject: [PATCH] 合并门锁,完成住宅管理

---
 ZigbeeApp/Shared/Phone/UserCenter/Member/MemberListForm.cs |   32 +++++++++-----------------------
 1 files changed, 9 insertions(+), 23 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Member/MemberListForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Member/MemberListForm.cs
index a50a04e..38c4032 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Member/MemberListForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Member/MemberListForm.cs
@@ -132,11 +132,17 @@
             btnMenberTile.TextSize = 15;
             bodyFrameLayout.AddChidren(btnMenberTile);
 
+            var frameBack = new FrameLayout();
+            frameBack.Y = btnMenberTile.Bottom + Application.GetRealHeight(23);
+            frameBack.Height = Application.GetRealHeight(11);
+            frameBack.BackgroundColor = UserCenterColor.Current.White;
+            bodyFrameLayout.AddChidren(frameBack);
+
             //娣诲姞鍙互鍚戜笅婊氬姩鐨勬帶浠�
             listView = new VerticalListControl(12);
-            listView.Height = bodyFrameLayout.Height - Application.GetRealHeight(567);
+            listView.Height = bodyFrameLayout.Height - frameBack.Bottom;
             listView.BackgroundColor = UserCenterColor.Current.White;
-            listView.Y = Application.GetRealHeight(567);
+            listView.Y = frameBack.Bottom;
             bodyFrameLayout.AddChidren(listView);
 
             //鍒濆鍖栨垚鍛樺垪琛�
@@ -223,18 +229,8 @@
                 //娣诲姞鎴愬憳琛�
                 this.AddRowLayout(listNewInfo[i], i != count);
             }
-            if (listNewInfo.Count == 0)
-            {
-                return;
-            }
             //璋冩暣鍒楄〃鎺т欢鐨勯珮搴�
-            var realHeight = listNewInfo.Count * listView.GetChildren(listView.ChildrenCount - 1).Height;
-            realHeight += Application.GetRealHeight(23) - listView.rowSpace + Application.GetRealHeight(23);
-            if (realHeight < listView.Height)
-            {
-                //缂╁皬鎺т欢楂樺害
-                listView.Height = realHeight;
-            }
+            listView.AdjustRealHeight(Application.GetRealHeight(23));
         }
 
         #endregion
@@ -248,16 +244,6 @@
         ///  <param name="addLine">addLine</param>
         private void AddRowLayout(MemberInfoRes info, bool addLine)
         {
-            if (listView.ChildrenCount == 0)
-            {
-                //濉炰竴涓┖鐧界殑杩涘幓鍗犵┖闂�
-                var rowTemp = new FrameRowControl();
-                rowTemp.UseClickStatu = false;
-                rowTemp.Height = Application.GetRealHeight(23) - listView.rowSpace;
-                rowTemp.MainKeys = string.Empty;
-                listView.AddChidren(rowTemp);
-            }
-
             var rowlayout = new FrameRowControl(listView.rowSpace / 2);
             rowlayout.Height = Application.GetRealHeight(138);
             rowlayout.MainKeys = info.Account;

--
Gitblit v1.8.0