diff --git a/src/UniversalValveToolbox.sln b/src/UniversalValveToolbox.sln index d70618d..1003379 100644 --- a/src/UniversalValveToolbox.sln +++ b/src/UniversalValveToolbox.sln @@ -5,8 +5,6 @@ VisualStudioVersion = 16.0.29521.150 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UniversalValveToolbox", "UniversalValveToolbox\UniversalValveToolbox.csproj", "{DE66895F-7317-45D3-B5CA-292253CE086A}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "wpfExample", "wpfExample\wpfExample.csproj", "{8532F273-FDBB-462A-9276-85641A9B059B}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -17,10 +15,6 @@ Global {DE66895F-7317-45D3-B5CA-292253CE086A}.Debug|Any CPU.Build.0 = Debug|Any CPU {DE66895F-7317-45D3-B5CA-292253CE086A}.Release|Any CPU.ActiveCfg = Release|Any CPU {DE66895F-7317-45D3-B5CA-292253CE086A}.Release|Any CPU.Build.0 = Release|Any CPU - {8532F273-FDBB-462A-9276-85641A9B059B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {8532F273-FDBB-462A-9276-85641A9B059B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8532F273-FDBB-462A-9276-85641A9B059B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {8532F273-FDBB-462A-9276-85641A9B059B}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/src/UniversalValveToolbox/Util/JsonReader.cs b/src/UniversalValveToolbox/Util/JsonReader.cs index e053eda..8864fd3 100644 --- a/src/UniversalValveToolbox/Util/JsonReader.cs +++ b/src/UniversalValveToolbox/Util/JsonReader.cs @@ -7,11 +7,12 @@ using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; +using System.Windows.Forms; using UniversalValveToolbox.Util.Dto; namespace UniversalValveToolbox.Util { class DataManager { - private const string SettingsPath = "settings.json"; + private readonly string SettingsPath = Path.Combine(Application.StartupPath, "json", "settings.json"); public Settings ReadSettings() => this.ReadModel(SettingsPath); public void SaveSettings(Settings settingsDto) => this.WriteModel(SettingsPath, settingsDto);