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/UserMain/UserInformationForm.cs | 39 ++++++++++++++++++++++++++++-----------
1 files changed, 28 insertions(+), 11 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserInformationForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserInformationForm.cs
index 4ee3637..df671d2 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserInformationForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserInformationForm.cs
@@ -8,6 +8,11 @@
/// </summary>
public class UserInformationForm : EditorCommonForm
{
+ /// <summary>
+ /// 涓儴妗屽竷鎺т欢
+ /// </summary>
+ private FrameLayout frameMiddleBack = null;
+
#region 鈻� 鍒濆鍖朹____________________________
/// <summary>
@@ -70,16 +75,23 @@
/// </summary>
private void InitMiddleBodyFrame()
{
- var frameBack = new FrameLayout();
- frameBack.Y = Application.GetRealHeight(363);
- frameBack.Height = Application.GetRealHeight(1008);
- frameBack.BackgroundColor = UserCenterColor.Current.White;
- bodyFrameLayout.AddChidren(frameBack);
+ if (this.frameMiddleBack == null)
+ {
+ frameMiddleBack = new FrameLayout();
+ frameMiddleBack.Y = Application.GetRealHeight(363);
+ frameMiddleBack.Height = Application.GetRealHeight(1008);
+ frameMiddleBack.BackgroundColor = UserCenterColor.Current.White;
+ bodyFrameLayout.AddChidren(frameMiddleBack);
+ }
+ else
+ {
+ frameMiddleBack.RemoveAll();
+ }
var listMidFrame = new FrameListControl(12);
listMidFrame.Y = Application.GetRealHeight(11);
listMidFrame.Height = Application.GetRealHeight(1008 - 11);
- frameBack.AddChidren(listMidFrame);
+ frameMiddleBack.AddChidren(listMidFrame);
var rowName = new FrameRowControl(listMidFrame.rowSpace / 2);
//鍏抽棴鐐瑰嚮鐘舵��
@@ -134,6 +146,7 @@
rowEmail.AddRightArrow();
//閭
var btnEmail = rowEmail.AddMostRightView(UserCenterResourse.UserInfo.Email, 500);
+ btnEmail.IsBold = true;
if (string.IsNullOrEmpty(UserCenterResourse.UserInfo.Email) == true)
{
//鏈缃�,璇风粦瀹�
@@ -163,6 +176,7 @@
rowPhone.AddRightArrow();
//鎵嬫満鍙�
var btnPhone = rowPhone.AddMostRightView(UserCenterResourse.UserInfo.Phone, 500);
+ btnPhone.IsBold = true;
if (string.IsNullOrEmpty(UserCenterResourse.UserInfo.Phone) == true)
{
//鏈缃�,璇风粦瀹�
@@ -196,7 +210,8 @@
//娣诲姞鍚戝彸鍥炬爣
rowOther.AddRightArrow();
//寰俊銆丵Q
- rowOther.AddMostRightView(Language.StringByID(R.MyInternationalizationString.uWebChatAndQQ), 500);
+ var btnQQ = rowOther.AddMostRightView(Language.StringByID(R.MyInternationalizationString.uWebChatAndQQ), 500);
+ btnQQ.IsBold = true;
rowOther.ButtonClickEvent += (sender, e) =>
{
var form = new OtherParty.OtherPartyAccountMenuForm();
@@ -212,7 +227,8 @@
//娣诲姞鍚戝彸鍥炬爣
rowSysPsw.AddRightArrow();
//鍘讳慨鏀�
- rowSysPsw.AddMostRightView(Language.StringByID(R.MyInternationalizationString.uGotoEditor), 350);
+ var btnPsw = rowSysPsw.AddMostRightView(Language.StringByID(R.MyInternationalizationString.uGotoEditor), 350);
+ btnPsw.IsBold = true;
rowSysPsw.ButtonClickEvent += (sender, e) =>
{
var form = new Password.EditorAccountPasswordForm();
@@ -226,7 +242,8 @@
//娣诲姞鍚戝彸鍥炬爣
rowSecond.AddRightArrow();
//瀵嗙爜銆佹墜鍔裤�佹寚绾�
- rowSecond.AddMostRightView(Language.StringByID(R.MyInternationalizationString.uPasswordGestureFingerPrint), 400);
+ var btnSecand = rowSecond.AddMostRightView(Language.StringByID(R.MyInternationalizationString.uPasswordGestureFingerPrint), 400);
+ btnSecand.IsBold = true;
rowSecond.ButtonClickEvent += (sender, e) =>
{
var form = new SecondAuthenticationForm();
@@ -404,8 +421,8 @@
/// </summary>
public override int FormActionAgainEvent()
{
- //閲嶆柊鍒锋柊鐣岄潰
- this.ShowForm();
+ //鍒濆鍖栦腑閮ㄧ殑淇℃伅
+ this.InitMiddleBodyFrame();
return 1;
}
--
Gitblit v1.8.0