Пример #1
0
 public static AutoSettings Load()
 {
     if (!File.Exists(fileName))
     {
         return(new AutoSettings());
     }
     return(Serialiser.Deserialize(File.ReadAllText(fileName)));
 }
Пример #2
0
 public static void Save(AutoSettings autoSettings)
 {
     File.WriteAllText(fileName, Serialiser.Serialise(autoSettings));
 }