From 1a4b95a7ebef71838bd3eda2c22056bbf0db65ec Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期五, 10 一月 2020 16:39:54 +0800 Subject: [PATCH] 2019阶段备份 --- HDL_ON/UI/UI2/4-PersonalCenter/BLL/PersonalCenterPageBLL.cs | 31 ++++++++++++++++++------------- 1 files changed, 18 insertions(+), 13 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/BLL/PersonalCenterPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/BLL/PersonalCenterPageBLL.cs index da05712..56aed70 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/BLL/PersonalCenterPageBLL.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/BLL/PersonalCenterPageBLL.cs @@ -1,7 +1,7 @@ 锘縰sing System; using Shared; -namespace HDL_ON.UI2 +namespace HDL_ON.UI { public partial class PersonalCenterPage { @@ -11,8 +11,11 @@ void LoadEventList() { LoadEvent_SwitchHome(); + LoadEvent_GoPersonalDataPage(); } + + #region 鍒囨崲浣忓畢 /// <summary> /// 浣忓畢鍒楄〃鐐瑰嚮浜嬩欢 /// </summary> @@ -44,7 +47,6 @@ }; dispalyView.AddChidren(contentView); - foreach(var home in MainPage.LoginUser.HomeLists) { var btnHomeName = new Button() @@ -74,7 +76,7 @@ btnHomeName.MouseUpEventHandler += (senderH, en) => { var regionInfo = btnHomeName.Tag as RegionInfoRes; - //LoadMothed_SwitchHome(regionInfo); + dialog.Close(); UserConfig.Instance.CurrentRegion = regionInfo; btnCurResidenceName.Text = regionInfo.Name; @@ -86,16 +88,19 @@ }; } - /// <summary> - /// 鍒囨崲浣忓畢 - /// </summary> - /// <param name="regionInfo"></param> - void LoadMothed_SwitchHome(RegionInfoRes regionInfo) - { - UserConfig.Instance.CurrentRegion = regionInfo; - btnCurResidenceName.Text = regionInfo.Name; - UserConfig.Instance.SaveUserConfig(); - } + #endregion + + #region 涓汉涓績 + void LoadEvent_GoPersonalDataPage() + { + btnUserHeadPortrait.MouseUpEventHandler += (sender, e) => { + var personalDataView = new PersonalDataPage(); + MainPage.BasePageView.AddChidren(personalDataView); + personalDataView.LoadView(); + MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; + }; + } + #endregion } } -- Gitblit v1.8.0