终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

LocaPath.cs 887 B

2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace BPASmartClient.Helper
  8. {
  9. public class LocaPath : Singleton<LocaPath>
  10. {
  11. public string FilePath { get; set; } = string.Empty;
  12. public string Getpath(string name)
  13. {
  14. Directory.CreateDirectory(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, $"{FilePath}\\JSON"));
  15. return $"{AppDomain.CurrentDomain.BaseDirectory}{FilePath}JSON\\{name}.json";
  16. }
  17. public string GetDeviceConfigPath
  18. {
  19. get
  20. {
  21. Directory.CreateDirectory(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, $"AccessFile\\DeviceConfig"));
  22. return $"{AppDomain.CurrentDomain.BaseDirectory}AccessFile\\DeviceConfig\\";
  23. }
  24. }
  25. }
  26. }