黄学彪
2019-12-09 163777d8a2cb7cfa469f54a7042528870ebc10a3
ZigbeeApp/Shared/Phone/UserCenter/Member/AddMemberInfoForm.cs
@@ -44,21 +44,32 @@
            this.ClearBodyFrame();
            string iconPath = System.IO.Path.Combine(UserCenterResourse.Option.UserPictruePath, memberResult.DistributedMark + ".png");
            //写入头像内容
            Shared.IO.FileUtils.WriteFileByBytes(iconPath, memberResult.HeadImage);
            if (memberResult.HeadImage != null)
            {
                //写入头像内容
                Shared.IO.FileUtils.WriteFileByBytes(iconPath, memberResult.HeadImage);
            }
            //头像
            var btnUserIcon = new ImageView();
            btnUserIcon.Height = Application.GetMinRealAverage(207);
            btnUserIcon.Width = Application.GetMinRealAverage(207);
            btnUserIcon.Radius = (uint)Application.GetMinRealAverage(207) / 2;
            btnUserIcon.ImageBytes = Shared.IO.FileUtils.ReadFile(iconPath);
            if (memberResult.HeadImage != null)
            {
                btnUserIcon.ImageBytes = Shared.IO.FileUtils.ReadFile(iconPath);
            }
            else
            {
                btnUserIcon.ImagePath = "Center/Admin.png";
            }
            btnUserIcon.Y = Application.GetRealHeight(219);
            btnUserIcon.Gravity = Gravity.CenterHorizontal;
            bodyFrameLayout.AddChidren(btnUserIcon);
            //成员ID
            var btnUserId = new NormalViewControl(800, 50, true);
            btnUserId.IsBold = true;
            btnUserId.Y = Application.GetRealHeight(472);
            btnUserId.Gravity = Gravity.CenterHorizontal;
            btnUserId.Text = memberResult.Account;
@@ -68,6 +79,7 @@
            //昵称
            var btnName = new NormalViewControl(800, 55, true);
            btnName.IsBold = true;
            btnName.Y = Application.GetRealHeight(541);
            btnName.Gravity = Gravity.CenterHorizontal;
            btnName.TextAlignment = TextAlignment.Center;
@@ -83,6 +95,7 @@
                strMsg = string.Format(strMsg, "\r\n");
            }
            var btnmsg = new NormalViewControl(800, 100, true);
            btnmsg.IsBold = true;
            btnmsg.Y = Application.GetRealHeight(913);
            btnmsg.TextSize = 12;
            btnmsg.Text = strMsg;