From 16604a593202f2f87adf71abd57d036fe7da3b52 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期一, 18 十一月 2019 10:39:42 +0800 Subject: [PATCH] 同步了全部的代码 --- ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserMainForm.cs | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserMainForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserMainForm.cs index 5ef06a0..eb9cacf 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserMainForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserMainForm.cs @@ -30,6 +30,10 @@ /// 鐨囧啝 /// </summary> private IconViewControl btnImperialCrown = null; + /// <summary> + /// 淇℃伅鎻愮ず鎺т欢 + /// </summary> + private MessageManagementControl msgControl = null; #endregion @@ -66,6 +70,12 @@ { //娓呯┖bodyFrame this.ClearBodyFrame(); + + //淇℃伅鎻愮ず鎺т欢 + this.msgControl = new MessageManagementControl(); + msgControl.Y = Application.GetRealHeight(127); + msgControl.X = Application.GetRealWidth(953); + bodyFrameLayout.AddChidren(this.msgControl); //涓汉涓績 var btnTitle = new NormalViewControl(350, 100, true); @@ -112,7 +122,7 @@ btnUserIcon.Width = Application.GetMinRealAverage(280); btnUserIcon.Radius = (uint)Application.GetMinRealAverage(280) / 2; btnUserIcon.X = Application.GetRealWidth(121); - btnUserIcon.ImagePath = UserCenterResourse.UserInfo.UserIconFile; + btnUserIcon.ImageBytes = Shared.IO.FileUtils.ReadFile(UserCenterResourse.UserInfo.UserIconFile); bodyFrameLayout.AddChidren(btnUserIcon); btnUserIcon.Y = frameWhite.Y - Application.GetRealHeight(109); btnUserIcon.MouseUpEventHandler += (sender, e) => @@ -418,7 +428,7 @@ if (UserCenterResourse.UserInfo.UserIconFileChanged == true) { UserCenterResourse.UserInfo.UserIconFileChanged = false; - btnUserIcon.ImagePath = UserCenterResourse.UserInfo.UserIconFile; + btnUserIcon.ImageBytes = Shared.IO.FileUtils.ReadFile(UserCenterResourse.UserInfo.UserIconFile); } //鐢ㄦ埛鍚嶅瓧 btnUserName.Text = UserCenterResourse.UserInfo.UserName; @@ -440,6 +450,9 @@ } } + //鍒锋柊淇℃伅鎻愮ず鎺т欢 + this.msgControl.RefreshStatu(); + //鍒濆鍖栦富鑿滃崟鐨勬帶浠� this.InitMainMenuInfoControl(frameWhiteBack); -- Gitblit v1.8.0