HDL Home App 第二版本 旧平台金堂用 正在使用
黄学彪
2019-11-04 c7698e163e43cea9e7f8ee45f8e3f91c9265cca4
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;