public static AutoSettings Load() { if (!File.Exists(fileName)) { return(new AutoSettings()); } return(Serialiser.Deserialize(File.ReadAllText(fileName))); }
public static void Save(AutoSettings autoSettings) { File.WriteAllText(fileName, Serialiser.Serialise(autoSettings)); }