| | |
| | | /// </summary>
|
| | | public class UserInformationForm : EditorCommonForm
|
| | | {
|
| | | /// <summary>
|
| | | /// 中部桌布控件
|
| | | /// </summary>
|
| | | private FrameLayout frameMiddleBack = null;
|
| | |
|
| | | #region ■ 初始化_____________________________
|
| | |
|
| | | /// <summary>
|
| | |
| | | /// </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);
|
| | | //关闭点击状态
|
| | | rowName.UseClickStatu = false;
|
| | | listMidFrame.AddChidren(rowName);
|
| | | //底线
|
| | | rowName.AddBottomLine();
|
| | | var btnNameLine = rowName.AddBottomLine();
|
| | | //名称View
|
| | | rowName.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uName), 350);
|
| | | //名称输入
|
| | |
| | | //更新用户名
|
| | | this.SaveUserName(txtName.Text.Trim());
|
| | | });
|
| | | //联动线的状态
|
| | | txtName.btnLine = btnNameLine;
|
| | |
|
| | | var rowQrCode = new FrameRowControl(listMidFrame.rowSpace / 2);
|
| | | listMidFrame.AddChidren(rowQrCode);
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | btnPhone.Text = "+" + UserCenterResourse.UserInfo.AreaCode + " " + UserCenterResourse.UserInfo.Phone;
|
| | | string phoneNum = UserCenterResourse.UserInfo.Phone;
|
| | | if (phoneNum.Length >= 11)
|
| | | {
|
| | | phoneNum = phoneNum.Substring(0, 3) + "".PadLeft(phoneNum.Length - 7, '*') + phoneNum.Substring(phoneNum.Length - 4, 4);
|
| | | }
|
| | | else if (phoneNum.Length >= 5)
|
| | | {
|
| | | //或许这是国外的手机吧
|
| | | phoneNum = phoneNum.Substring(0, 3) + "".PadLeft(phoneNum.Length - 5, '*') + phoneNum.Substring(phoneNum.Length - 2, 2);
|
| | | }
|
| | | btnPhone.Text = "+" + UserCenterResourse.UserInfo.AreaCode + " " + phoneNum;
|
| | | }
|
| | | rowPhone.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | |
| | | //添加向右图标
|
| | | rowOther.AddRightArrow();
|
| | | //微信、QQ
|
| | | rowOther.AddMostRightView(Language.StringByID(R.MyInternationalizationString.uWebChatAndQQ), 500);
|
| | | //var btnQQ = rowOther.AddMostRightView(Language.StringByID(R.MyInternationalizationString.uWebChatAndQQ), 500);
|
| | | var btnQQ = rowOther.AddMostRightView(Language.StringByID(R.MyInternationalizationString.uWebChat), 500);
|
| | | rowOther.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | var form = new OtherParty.OtherPartyAccountMenuForm();
|
| | |
| | | //添加向右图标
|
| | | rowSysPsw.AddRightArrow();
|
| | | //去修改
|
| | | rowSysPsw.AddMostRightView(Language.StringByID(R.MyInternationalizationString.uGotoEditor), 350);
|
| | | var btnPsw = rowSysPsw.AddMostRightView(Language.StringByID(R.MyInternationalizationString.uGotoEditor), 350);
|
| | | rowSysPsw.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | var form = new Password.EditorAccountPasswordForm();
|
| | |
| | | //添加向右图标
|
| | | rowSecond.AddRightArrow();
|
| | | //密码、手势、指纹
|
| | | rowSecond.AddMostRightView(Language.StringByID(R.MyInternationalizationString.uPasswordGestureFingerPrint), 400);
|
| | | var btnSecand = rowSecond.AddMostRightView(Language.StringByID(R.MyInternationalizationString.uPasswordGestureFingerPrint), 400);
|
| | | rowSecond.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | var form = new SecondAuthenticationForm();
|
| | |
| | | /// </summary>
|
| | | public override int FormActionAgainEvent()
|
| | | {
|
| | | //重新刷新界面
|
| | | this.ShowForm();
|
| | | //初始化中部的信息
|
| | | this.InitMiddleBodyFrame();
|
| | |
|
| | | return 1;
|
| | | }
|