ConfigPath.cs 672 B

123456789101112131415
  1. using System.IO;
  2. namespace EEMSUIClient.Data;
  3. public class ConfigPath
  4. {
  5. private string SettingsFolder { get; } = $"{AppDomain.CurrentDomain.BaseDirectory}/Settings";
  6. private string IpAddressFileName { get; } = "IpAddressInformation.json";
  7. private string DeviceInfoFileName { get; } = "DeviceInformation.json";
  8. private string FolderInfoFileName { get; } = "FolderInformation.json";
  9. public string IPAddressFilePath => Path.Combine(SettingsFolder, IpAddressFileName);
  10. public string DeviceInfoFilePath => Path.Combine(SettingsFolder, DeviceInfoFileName);
  11. public string FolderInfoFilePath => Path.Combine(SettingsFolder, FolderInfoFileName);
  12. }