终端一体化运控平台
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.
 
 
 

30 line
868 B

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