黄学彪
2019-11-18 16604a593202f2f87adf71abd57d036fe7da3b52
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);