Paths.cs 780 B

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