In my application I allow user to choose a file with some data, data is read and it should be available when user closes and opens the application again. I thought that one could store the value in Settings so I wrote a class:
public static class SettingsManager
{
public static string ComplexValidationsString
{
get { return (string)Properties.Settings.Default["ComplexValidations"]; }
set { Properties.Settings.Default["ComplexValidations"] = value; }
}
//some more
}
After setting the value and closing the application the value was lost. Is there any similar way to do it so that the value is preserved? I've once seen some code to replace data written in config file so I suppose there is a way.