Пример #1
0
        private static void CreateDefaultSettingsFile()
        {
            var defaultSettings = new SettingStructure();

            LunaXmlSerializer.WriteToXmlFile(defaultSettings, SettingsFilePath);
        }
Пример #2
0
 public static void SaveSettings(SettingStructure currentSettings)
 {
     CheckDataDirectory();
     LunaXmlSerializer.WriteToXmlFile(currentSettings, SettingsFilePath);
     File.Copy(SettingsFilePath, BackupSettingsFilePath, true);
 }