public string GetUserDefinedName() { if (!File.Exists(Path.GetFullPath(DefaultSaveName))) { File.Create(Path.GetFullPath(DefaultSaveName)); } var result = JsonWriterLoaderGeneric <OtherSettings> .LoadJsonSettings(DefaultSaveName); return(result.DefaultImageName); }
public OtherSettings SaveChanges() { if (!File.Exists(Path.GetFullPath(DefaultSaveName))) { File.Create(Path.GetFullPath(DefaultSaveName)); } OtherSettings other = new OtherSettings(); other.SetImageName(DefaultImageName); JsonWriterLoaderGeneric <OtherSettings> .WriteJsonSettings(DefaultSaveName, other); var result = JsonWriterLoaderGeneric <OtherSettings> .LoadJsonSettings(DefaultSaveName); return(result); }