| | |
| | | listResidenceSort.Add(pageData.PageData[i].Id);
|
| | | }
|
| | | }
|
| | | for (int i = 0; i < listResidenceSort.Count; i++)
|
| | | {
|
| | | //移除掉不存在了的顺序
|
| | | if (dicData.ContainsKey(listResidenceSort[i]) == false)
|
| | | {
|
| | | listResidenceSort.RemoveAt(i);
|
| | | i--;
|
| | | }
|
| | | }
|
| | | //保存顺序
|
| | | string fullName = UserCenterLogic.CombinePath(DirNameResourse.LocalMemoryDirectory, DirNameResourse.ResidenceSortFile);
|
| | | UserCenterLogic.SaveFileContent(fullName, listResidenceSort);
|
| | |
| | | this.dicResidenceData = new Dictionary<string, Common.ResponseEntity.ResidenceObj>();
|
| | | for (int i = 0; i < listResidenceSort.Count; i++)
|
| | | {
|
| | | if (dicData.ContainsKey(listResidenceSort[i]) == false)
|
| | | {
|
| | | continue;
|
| | | }
|
| | | var info = dicData[listResidenceSort[i]];
|
| | | if (info.IsOthreShare == false)
|
| | | {
|
| | |
| | | {
|
| | | HdlThreadLogic.Current.RunThread(async () =>
|
| | | {
|
| | | ProgressBar.Show();
|
| | | this.ShowProgressBar();
|
| | |
|
| | | Config.Instance.HomeId = info.Id;
|
| | | Global.CreateHomeDirectory(info.Id);
|
| | | Config.Instance.Save();
|
| | | //刷新个人中心的内存及线程
|
| | | await UserCenterLogic.InitUserCenterMenmoryAndThread();
|
| | | await UserCenterLogic.InitUserCenterMenmoryAndThread(false);
|
| | |
|
| | | Room.InitAllRoom();
|
| | |
|