wxr
2020-09-09 c3e1b733fc45bd9f0b88bfb560cfa87a270b079b
HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs
@@ -38,10 +38,39 @@
        {
            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);
                FileUtils.DeleteAllFile();
                DB_ResidenceData.residenceData.EixtAccount();
            };
        }
@@ -132,7 +161,7 @@
                    {
                        new Tip()
                        {
                            CloseTime = 3,
                            CloseTime = 1,
                            Text = Language.StringByID(StringId.UesrNameCannotBeEmpty),
                            Direction = AMPopTipDirection.None,
                        }.Show(bodyView);
@@ -177,7 +206,7 @@
                                    var tip = new Tip()
                                    {
                                        Text = tipStr,
                                        CloseTime = 3,
                                        CloseTime = 1,
                                        Direction = AMPopTipDirection.None
                                    };
                                    tip.Show(bodyView);
@@ -198,7 +227,7 @@
                    })
                    { 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;