Example #1
0
 /// <summary>
 ///     Save Program settings
 /// </summary>
 /// <param name="settings">Settings</param>
 /// <param name="filename">File to save to</param>
 public void SaveProgramSettings(ProgramSettings settings, string filename)
 {
     File.WriteAllText(filename, JsonConvert.SerializeObject(settings));
 }
Example #2
0
        public void Save(ProgramSettings settings)
        {
            FileLoader loader = new FileLoader();

            loader.SaveProgramSettings(settings, _filename);
        }