Esempio n. 1
0
        private static void CreateDefaultSettingsFile()
        {
            var defaultSettings = new SettingStructure();

            LunaXmlSerializer.WriteToXmlFile(defaultSettings, SettingsFilePath);
        }
Esempio n. 2
0
 public static void SaveSettings(SettingStructure currentSettings)
 {
     CheckDataDirectory();
     LunaXmlSerializer.WriteToXmlFile(currentSettings, SettingsFilePath);
     File.Copy(SettingsFilePath, BackupSettingsFilePath, true);
 }