| | |
| | | LoadEvent_Logout(); |
| | | LoadEvent_EditUserName(); |
| | | LoadEvent_SkipInterpretationSettings(); |
| | | LoadEvent_ChangeBindEmail(); |
| | | LoadEvent_ChangeBindPhone(); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | }.Show(bodyView); |
| | | return; |
| | | } |
| | | if(str == MainPage.LoginUser.userName) |
| | | { |
| | | return; |
| | | } |
| | | var waitPage = new Loading(); |
| | | waitPage.Start(Language.StringByID(StringId.PleaseWait)); |
| | | new System.Threading.Thread(() => |
| | |
| | | btnEditUserNameIcon.MouseUpEventHandler = eventHandler; |
| | | } |
| | | |
| | | #region 修改绑定邮箱 |
| | | /// <summary> |
| | | /// 修改绑定邮箱 |
| | | /// </summary> |
| | | void LoadEvent_ChangeBindEmail() |
| | | { |
| | | EventHandler<MouseEventArgs> eventHandler = (sender, e) => { |
| | | Action<string> action = (email) => |
| | | { |
| | | btnUserEmailInfo.Text = email; |
| | | }; |
| | | |
| | | var aep = new AccountBindInfoPage(); |
| | | MainPage.BasePageView.AddChidren(aep); |
| | | aep.LoadPage(action,1,StringId.EmailAddress); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | btnUserEmailInfo.MouseUpEventHandler = eventHandler; |
| | | btnUserEmailRight.MouseUpEventHandler = eventHandler; |
| | | userEmailInfoView.MouseUpEventHandler = eventHandler; |
| | | } |
| | | /// <summary> |
| | | /// 修改绑定手机 |
| | | /// </summary> |
| | | void LoadEvent_ChangeBindPhone() |
| | | { |
| | | EventHandler<MouseEventArgs> eventHandler = (sender, e) => { |
| | | Action<string> action = (phone) => |
| | | { |
| | | btnUserPhoneInfo.Text = phone; |
| | | }; |
| | | |
| | | var aep = new AccountBindInfoPage(); |
| | | MainPage.BasePageView.AddChidren(aep); |
| | | aep.LoadPage(action, 2, StringId.PhoneInfo); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | btnUserPhoneInfo.MouseUpEventHandler = eventHandler; |
| | | btnUserPhoneRight.MouseUpEventHandler = eventHandler; |
| | | userPhoneInfoView.MouseUpEventHandler = eventHandler; |
| | | } |
| | | #endregion |
| | | |
| | | #region 解锁设置区域 |
| | | void LoadEvent_SkipInterpretationSettings() |