From 163777d8a2cb7cfa469f54a7042528870ebc10a3 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期一, 09 十二月 2019 17:46:20 +0800 Subject: [PATCH] 一个新版本 --- ZigbeeApp/Shared/Phone/UserCenter/Member/AddMemberInfoForm.cs | 19 ++++++++++++++++--- 1 files changed, 16 insertions(+), 3 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Member/AddMemberInfoForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Member/AddMemberInfoForm.cs index 680f70a..37f8867 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Member/AddMemberInfoForm.cs +++ b/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; -- Gitblit v1.8.0