| | |
| | | //如果没有自动备份数据,则把本地全部东西上传
|
| | | var pathTemp = DirNameResourse.AutoBackupDirectory;
|
| | | //复制本地所有文件过去
|
| | | List<string> listAllFile = Global.FileListByHomeId();
|
| | | List<string> listAllFile = HdlFileLogic.Current.GetRootPathListFile();
|
| | | foreach (string fileName in listAllFile)
|
| | | {
|
| | | string oldFile = System.IO.Path.Combine(Config.Instance.FullPath, fileName);
|
| | |
| | | {
|
| | | //删除检测文件
|
| | | System.IO.File.Delete(checkFile);
|
| | | //关闭进度条
|
| | | ProgressFormBar.Current.Close();
|
| | | //同步失败
|
| | | return -1;
|
| | | }
|
| | |
| | | //重新刷新住宅对象
|
| | | UserCenterLogic.RefreshHomeObject();
|
| | |
|
| | | //关闭进度条
|
| | | ProgressFormBar.Current.Close();
|
| | |
|
| | | return 1;
|
| | | }
|
| | |
|