From bd46c57c77c276014db3192a4e2cc96e23c93202 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期五, 21 二月 2020 13:08:47 +0800 Subject: [PATCH] 先上传个版本吧 --- ZigbeeApp/Shared/Phone/UserCenter/Member/MemberListForm.cs | 30 ++++++++++++++++++++++-------- 1 files changed, 22 insertions(+), 8 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Member/MemberListForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Member/MemberListForm.cs index bf52d7e..0ef7349 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Member/MemberListForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Member/MemberListForm.cs @@ -126,7 +126,7 @@ btnAuthority.TextAlignment = TextAlignment.Center; btnAuthority.Y = btnName.Bottom + Application.GetRealHeight(10); btnAuthority.TextSize = 12; - btnAuthority.TextColor = UserCenterColor.Current.TextGrayColor; + btnAuthority.TextColor = UserCenterColor.Current.TextGrayColor1; btnAuthority.Text = UserCenterResourse.UserInfo.AuthorityText; frameBack.AddChidren(btnAuthority); } @@ -321,6 +321,23 @@ }; } + /// <summary> + /// 娣诲姞鎴愬憳琛�(澶栭儴璋冪敤) + /// </summary> + /// <param name="info"></param> + public void AddRowLayoutByOtherForm(MemberInfoRes info) + { + var myRow = listView.GetChildren(listView.ChildrenCount - 1); + if (myRow != null) + { + //鏈�鍚庝竴琛屽姞搴曠嚎 + ((FrameRowControl)myRow).AddBottomLine(); + } + this.AddRowLayout(info, false); + //璋冩暣鍒楄〃鎺т欢鐨勯珮搴� + listView.AdjustRealHeight(Application.GetRealHeight(23)); + } + #endregion #region 鈻� 鑾峰彇鎴愬憳澶村儚_______________________ @@ -374,7 +391,7 @@ #region 鈻� 鍒犻櫎鎸囧畾琛宊________________________ /// <summary> - /// 鍒犻櫎鎸囧畾琛� + /// 鍒犻櫎鎸囧畾琛�(澶栭儴璋冪敤) /// </summary> /// <param name="accountId"></param> public void DeleteRowByAccount(string accountId) @@ -389,6 +406,9 @@ if (row.MainKeys == accountId) { row.RemoveFromParent(); + //璋冩暣鍒楄〃鎺т欢鐨勯珮搴� + listView.AdjustRealHeight(Application.GetRealHeight(23)); + break; } } @@ -442,12 +462,6 @@ { //娓呯┖鍏变韩鏂囦欢澶� HdlShardLogic.Current.ClearShardDirectory(); - - this.listView.RemoveAll(); - listView.Height = bodyFrameLayout.Height - Application.GetRealHeight(567); - - //娣诲姞鎴愬憳鍒楄〃 - this.AddMemberListRowByData(); return 1; } -- Gitblit v1.8.0