From 5727cf0b9b54da0a191dd1e23cb5abf21320fbff Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期一, 25 十一月 2019 10:34:17 +0800 Subject: [PATCH] IOS使用新的项目名称 --- ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserMainForm.cs | 24 ++++++++++++++---------- 1 files changed, 14 insertions(+), 10 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserMainForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserMainForm.cs index fc53b31..5ef06a0 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); } @@ -352,7 +355,7 @@ btnBackView.X -= ControlCommonResourse.XXLeft / 2; rowback.ButtonClickEvent += (sender, e) => { - var form = new HdlBackup.HdlBackupMenuForm(); + var form = new HdlBackup.HdlBackupListForm(); form.AddForm(); }; } @@ -375,8 +378,8 @@ btnSuView.X -= ControlCommonResourse.XXLeft / 2; rowSuggestion.ButtonClickEvent += (sender, e) => { - var form = new DeviceDoorLock.DoorLockHistoryLogForm(); - form.AddForm("澶╀笅绗竴"); + var form = new Suggestion.FeedbackForm(); + form.AddForm(); }; //鍏充簬鎴戜滑 @@ -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