From c7698e163e43cea9e7f8ee45f8e3f91c9265cca4 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期一, 04 十一月 2019 19:11:41 +0800 Subject: [PATCH] 合并了全部的代码 --- ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserMainForm.cs | 18 +++++++++++------- 1 files changed, 11 insertions(+), 7 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserMainForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserMainForm.cs index fc53b31..6d704ff 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserMainForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserMainForm.cs @@ -25,7 +25,7 @@ /// <summary> /// 鐢ㄦ埛澶村儚 /// </summary> - private IconViewControl btnUserIcon = null; + private ImageView btnUserIcon = null; /// <summary> /// 鐨囧啝 /// </summary> @@ -81,7 +81,7 @@ frameBack.BackgroundColor = UserCenterColor.Current.BodyFrameLayout; frameBack.Y = Application.GetRealHeight(380); frameBack.Gravity = Gravity.CenterHorizontal; - frameBack.Radius = (uint)Application.GetMinRealAverage(12); + frameBack.Radius = 12; frameBack.Width = bodyFrameLayout.Width - Application.GetRealWidth(29 * 2); frameBack.Height = bodyFrameLayout.Height - Application.GetRealHeight(380) + Application.GetRealHeight(100); bodyFrameLayout.AddChidren(frameBack); @@ -107,9 +107,12 @@ private void InitUserInfoControl(FrameLayout frameWhite) { //鐢ㄦ埛澶村儚 - this.btnUserIcon = new IconViewControl(280); + this.btnUserIcon = new ImageView(); + btnUserIcon.Height = Application.GetMinRealAverage(280); + btnUserIcon.Width = Application.GetMinRealAverage(280); + btnUserIcon.Radius = (uint)Application.GetMinRealAverage(280) / 2; btnUserIcon.X = Application.GetRealWidth(121); - btnUserIcon.UnSelectedImagePath = UserCenterResourse.UserInfo.UserIconFile; + btnUserIcon.ImagePath = UserCenterResourse.UserInfo.UserIconFile; bodyFrameLayout.AddChidren(btnUserIcon); btnUserIcon.Y = frameWhite.Y - Application.GetRealHeight(109); btnUserIcon.MouseUpEventHandler += (sender, e) => @@ -173,7 +176,7 @@ frameWhiteBack.Gravity = Gravity.CenterHorizontal; frameWhiteBack.Height = Application.GetRealHeight(371); frameWhiteBack.Width = frameWhite.Width - Application.GetRealWidth(29 * 2); - frameWhiteBack.Radius = (uint)Application.GetMinRealAverage(10); + frameWhiteBack.Radius = 10; frameWhiteBack.BackgroundColor = UserCenterColor.Current.White; frameWhite.AddChidren(frameWhiteBack); } @@ -412,9 +415,10 @@ public override int FormActionAgainEvent() { //鐢ㄦ埛澶村儚 - if (btnUserIcon.UnSelectedImagePath != UserCenterResourse.UserInfo.UserIconFile) + if (UserCenterResourse.UserInfo.UserIconFileChanged == true) { - btnUserIcon.UnSelectedImagePath = UserCenterResourse.UserInfo.UserIconFile; + UserCenterResourse.UserInfo.UserIconFileChanged = false; + btnUserIcon.ImagePath = UserCenterResourse.UserInfo.UserIconFile; } //鐢ㄦ埛鍚嶅瓧 btnUserName.Text = UserCenterResourse.UserInfo.UserName; -- Gitblit v1.8.0