From e22fdb94322e6cec38e5e4a9aec13d431a133fde Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期二, 28 四月 2020 16:32:35 +0800 Subject: [PATCH] 上传合并后的代码 --- ZigbeeApp/Shared/Phone/UserCenter/Member/SubAccountLevelUpSuccessForm.cs | 52 ++++++++++++++++++++++++++-------------------------- 1 files changed, 26 insertions(+), 26 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Member/SubAccountLevelUpSuccessForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Member/SubAccountLevelUpSuccessForm.cs index 99c148a..06f7bcc 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Member/SubAccountLevelUpSuccessForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Member/SubAccountLevelUpSuccessForm.cs @@ -13,7 +13,7 @@ /// <summary> /// 鎴愬憳鐨勪俊鎭� - /// </summary> + /// </summary> private MemberInfoRes memberInfo = null; #endregion @@ -23,19 +23,19 @@ /// <summary> /// 鐢婚潰鏄剧ず(搴曞眰浼氬浐瀹氳皟鐢ㄦ鏂规硶锛屽�熶互瀹屾垚鐢婚潰鍒涘缓) /// </summary> - /// <param name="info">鎴愬憳淇℃伅</param> - public void ShowForm(MemberInfoRes info) - { - this.memberInfo = info; - - //鍒濆鍖栦腑閮ㄦ帶浠� - this.InitMiddleFrame(); + /// <param name="info">鎴愬憳淇℃伅</param> + public void ShowForm(MemberInfoRes info) + { + this.memberInfo = info; + + //鍒濆鍖栦腑閮ㄦ帶浠� + this.InitMiddleFrame(); } - /// <summary> - /// 鍒濆鍖栦腑閮ㄦ帶浠� - /// </summary> - private void InitMiddleFrame() + /// <summary> + /// 鍒濆鍖栦腑閮ㄦ帶浠� + /// </summary> + private void InitMiddleFrame() { //鑳屾櫙妗� var frame = new FrameLayout(); @@ -49,10 +49,10 @@ //鐢ㄦ埛鍥炬爣 string iconPath = System.IO.Path.Combine(UserCenterResourse.AccountOption.UserPictruePath, memberInfo.DistributedMark + ".png"); var btnUserIcon = new ImageView(); - btnUserIcon.Height = Application.GetMinRealAverage(207); - btnUserIcon.Width = Application.GetMinRealAverage(207); - btnUserIcon.Radius = (uint)Application.GetMinRealAverage(207) / 2; - btnUserIcon.Y = Application.GetRealHeight(104); + btnUserIcon.Height = this.GetPictrueRealSize(207); + btnUserIcon.Width = this.GetPictrueRealSize(207); + btnUserIcon.Radius = (uint)this.GetPictrueRealSize(207) / 2; + btnUserIcon.Y = Application.GetRealHeight(104); btnUserIcon.Gravity = Gravity.CenterHorizontal; if (System.IO.File.Exists(iconPath) == true) { @@ -61,17 +61,17 @@ else { btnUserIcon.ImagePath = "Center/Admin.png"; - } + } frame.AddChidren(btnUserIcon); //鏄电О var btnName = new NormalViewControl(frame.Width, Application.GetRealHeight(55), false); - btnName.IsBold = true; - btnName.TextAlignment = TextAlignment.Center; - btnName.Y = Application.GetRealHeight(334); - btnName.TextColor = UserCenterColor.Current.TextColor2; - btnName.TextSize = 16; - btnName.Text = memberInfo.UserName; + btnName.IsBold = true; + btnName.TextAlignment = TextAlignment.Center; + btnName.Y = Application.GetRealHeight(334); + btnName.TextColor = UserCenterColor.Current.TextColor2; + btnName.TextSize = 16; + btnName.Text = memberInfo.UserName; if (string.IsNullOrEmpty(memberInfo.UserName) == true) { btnName.Text = memberInfo.Account; @@ -80,8 +80,8 @@ //鏉冮檺 var btnAuthority = new NormalViewControl(frame.Width, Application.GetRealHeight(50), false); - btnAuthority.TextAlignment = TextAlignment.Center; - btnAuthority.Y = Application.GetRealHeight(400); + btnAuthority.TextAlignment = TextAlignment.Center; + btnAuthority.Y = Application.GetRealHeight(400); btnAuthority.TextColor = UserCenterColor.Current.TextGrayColor1; if (memberInfo.AccountType == 1) { @@ -128,7 +128,7 @@ btnView.TextColor = UserCenterColor.Current.TextGrayColor1; btnView.IsMoreLines = true; btnView.TextSize = 12; - frame.AddChidren(btnView); + frame.AddChidren(btnView); //瀹屾垚 var btnFinish = new BottomClickButton(688); -- Gitblit v1.8.0