From 6fa9d69da922c8049f5acfcbb9ce9fd26811024c Mon Sep 17 00:00:00 2001 From: xm <1271024303@qq.com> Date: 星期四, 16 四月 2020 17:10:57 +0800 Subject: [PATCH] 请合并代码 --- ZigbeeApp/Shared/Phone/UserCenter/Member/MemberListForm.cs | 34 ++++++++++++++++++++++++---------- 1 files changed, 24 insertions(+), 10 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Member/MemberListForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Member/MemberListForm.cs index bf52d7e..72b2353 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); } @@ -281,7 +281,7 @@ listView.AddChidren(rowlayout); //鎴愬憳澶村儚鍥炬爣 - string iconPath = System.IO.Path.Combine(UserCenterResourse.Option.UserPictruePath, info.DistributedMark + ".png"); + string iconPath = System.IO.Path.Combine(UserCenterResourse.AccountOption.UserPictruePath, info.DistributedMark + ".png"); var btnIcon = new ImageView(); btnIcon.X = ControlCommonResourse.XXLeft; btnIcon.Gravity = Gravity.CenterVertical; @@ -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 鈻� 鑾峰彇鎴愬憳澶村儚_______________________ @@ -358,7 +375,7 @@ if (infoResult.HeadImage != null) { //鍐欏叆澶村儚鍐呭 - string iconPath = System.IO.Path.Combine(UserCenterResourse.Option.UserPictruePath, keys + ".png"); + string iconPath = System.IO.Path.Combine(UserCenterResourse.AccountOption.UserPictruePath, keys + ".png"); Shared.IO.FileUtils.WriteFileByBytes(iconPath, infoResult.HeadImage); HdlThreadLogic.Current.RunMain(() => { @@ -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