| | |
| | | LoadEvent_SkipInterpretationSettings(); |
| | | LoadEvent_ChangeBindEmail(); |
| | | LoadEvent_ChangeBindPhone(); |
| | | LoadEvent_SkipModifyPassword(); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | { |
| | | btnLogout.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | #region 保存本地数据至文件夹 |
| | | string oldRegionRootPath = FileUtils.CreateRegionBackup(DB_ResidenceData.residenceData.CurReginID.ToString()); |
| | | new System.Threading.Thread(() => |
| | | { |
| | | try |
| | | { |
| | | var backuplist = FileUtils.ReadFiles(); |
| | | FileUtils.DeleteRegionFiles(oldRegionRootPath); |
| | | //移动文件 |
| | | foreach (var fileName in backuplist) |
| | | { |
| | | System.IO.FileInfo fileInfo = new System.IO.FileInfo(FileUtils.RootPath + fileName); |
| | | if (fileInfo.Exists) |
| | | { |
| | | fileInfo.MoveTo(oldRegionRootPath + fileName); |
| | | MainPage.Log("move file : " + fileName); |
| | | } |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MainPage.Log($"xxx:{ex.Message}"); |
| | | } |
| | | finally |
| | | { |
| | | FileUtils.DeleteAllFile(); |
| | | } |
| | | }).Start(); |
| | | #endregion |
| | | |
| | | MainPage.LoginUser.lastTime = DateTime.MinValue; |
| | | MainPage.LoginUser.SaveUserInfo(); |
| | | MainPage.GoLoginPage(MainPage.LoginUser.accountString); |
| | | FileUtils.DeleteAllFile(); |
| | | MainPage.GoLoginPage(MainPage.LoginUser); |
| | | DB_ResidenceData.residenceData.EixtAccount(); |
| | | }; |
| | | } |
| | |
| | | /// <summary> |
| | | /// 加载背景图选择区域事件列表 |
| | | /// </summary> |
| | | void LoadEvent_PictureOptionViewEventList() |
| | | void LoadEvent_PictureOptionViewEventList(FrameLayout baseView) |
| | | { |
| | | pictureOptionView.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | pictureOptionView.RemoveFromParent(); |
| | | baseView.RemoveFromParent(); |
| | | }; |
| | | |
| | | baseView.MouseUpEventHandler = (sender, e) => { |
| | | baseView.RemoveFromParent(); |
| | | }; |
| | | btnCancel.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | pictureOptionView.RemoveFromParent(); |
| | | baseView.RemoveFromParent(); |
| | | }; |
| | | |
| | | btnTakePicture.MouseUpEventHandler = (sender, e) => |
| | |
| | | } |
| | | }), pid.ToString(), 1, 1); |
| | | pictureOptionView.RemoveFromParent(); |
| | | baseView.RemoveFromParent(); |
| | | }; |
| | | |
| | | btnAlbum.MouseUpEventHandler = (sender, e) => |
| | |
| | | } |
| | | }, pid.ToString(), 1, 1); |
| | | pictureOptionView.RemoveFromParent(); |
| | | baseView.RemoveFromParent(); |
| | | }; |
| | | } |
| | | |
| | |
| | | { |
| | | new Tip() |
| | | { |
| | | CloseTime = 3, |
| | | CloseTime = 1, |
| | | Text = Language.StringByID(StringId.UesrNameCannotBeEmpty), |
| | | Direction = AMPopTipDirection.None, |
| | | }.Show(bodyView); |
| | | return; |
| | | } |
| | | if(str == MainPage.LoginUser.userName) |
| | | { |
| | | return; |
| | | } |
| | | var waitPage = new Loading(); |
| | |
| | | var tip = new Tip() |
| | | { |
| | | Text = tipStr, |
| | | CloseTime = 3, |
| | | CloseTime = 1, |
| | | Direction = AMPopTipDirection.None |
| | | }; |
| | | tip.Show(bodyView); |
| | |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | }; |
| | | new PublicAssmebly().LoadDialog_EditParater(StringId.UesrName, MainPage.LoginUser.userName, callBack, StringId.UesrNameCannotBeEmpty, 0, new System.Collections.Generic.List<string>()); |
| | | new PublicAssmebly().LoadDialog_EditParater(StringId.ChangeName, MainPage.LoginUser.userName, callBack, StringId.UesrNameCannotBeEmpty, 0, new System.Collections.Generic.List<string>()); |
| | | }; |
| | | btnUserName.MouseUpEventHandler = eventHandler; |
| | | btnEditUserNameIcon.MouseUpEventHandler = eventHandler; |
| | |
| | | |
| | | #endregion |
| | | |
| | | /// <summary> |
| | | /// 跳转修改密码界面 |
| | | /// </summary> |
| | | void LoadEvent_SkipModifyPassword() |
| | | { |
| | | EventHandler<MouseEventArgs> eventHandler = (sender, e) => { |
| | | var page = new ResetPasswordOptionPage(); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | btnResetPasswordRight.MouseUpEventHandler = eventHandler; |
| | | btnResetPasswordText.MouseUpEventHandler = eventHandler; |
| | | resetPasswordView.MouseUpEventHandler = eventHandler; |
| | | } |
| | | |
| | | } |
| | | } |