Paths.cs 850 B

1234567891011121314
  1. namespace ConfigOperator;
  2. public class Paths
  3. {
  4. public static string LocalPath { get; } = Environment.CurrentDirectory;
  5. private static string MainFolder { get; } = new DirectoryInfo(LocalPath!)!.Parent!.FullName;
  6. public static string ConfigFileFolder { get; } = Path.Combine(MainFolder, "Settings", "ConfigFiles");
  7. public static string HardwareFolder { get; } = Path.Combine(MainFolder, "Settings", "Hardwares");
  8. public static string IOListFolder { get; } = Path.Combine(MainFolder, "Settings", "IOList");
  9. public static string PLCIOListFolder { get; } = Path.Combine(MainFolder, "Settings", "PLCIOList");
  10. public static string PLCChannelIOListFolder { get; } = Path.Combine(MainFolder, "Settings", "PLCIOList","PLCChannel");
  11. public static string BaseFolder { get; } = Path.Combine(MainFolder, "Settings", "Base");
  12. }