| | |
| | | { |
| | | if (string.IsNullOrEmpty(accountPath) || !accountPath.Contains(UserInfo.Current.ID)) |
| | | { |
| | | accountPath = Path.Combine(RootPath, UserInfo.Current.CurReginID); |
| | | accountPath = Path.Combine(RootPath, UserInfo.Current.ID); |
| | | if (!Directory.Exists(accountPath)) |
| | | { |
| | | Directory.CreateDirectory(accountPath); |
| | |
| | | { |
| | | get |
| | | { |
| | | if (string.IsNullOrEmpty(regionPath) || !regionPath.Contains(UserInfo.Current.CurReginID )) |
| | | if (string.IsNullOrEmpty(regionPath) || !regionPath.Contains(DB_ResidenceData.Instance.CurrentRegion.RegionID )) |
| | | { |
| | | regionPath = Path.Combine(AccountPath, UserInfo.Current.CurReginID); |
| | | regionPath = Path.Combine(AccountPath, DB_ResidenceData.Instance.CurrentRegion.RegionID); |
| | | if (!Directory.Exists(regionPath)) |
| | | { |
| | | Directory.CreateDirectory(regionPath); |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | //public List<> |
| | | |
| | | |
| | | /// <summary> |
| | |
| | | fs = new FileStream(Path.Combine(RegionPath, fileName), FileMode.Create, FileAccess.Write); |
| | | fs.Write(bytes, 0, bytes.Length); |
| | | fs.Flush(); |
| | | MainPage.Log("SaveFile:" + fileName); |
| | | MainPage.Log($"SaveFile:{fileName}");//Path:{RegionPath} |
| | | return true; |
| | | } |
| | | catch (Exception ex) |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | } |