/// <summary> /// Saves the application's settings. /// </summary> private void SaveSettings() { if (!PreserveApplicationSettings) { return; } var path = Path.Combine(GetLocalApplicationSettingsDirectory(), "UltravioletSettings.xml"); this.settings = UltravioletApplicationSettings.FromCurrentSettings(Ultraviolet); UltravioletApplicationSettings.Save(path, settings); }
/// <summary> /// Saves the application's settings. /// </summary> partial void SaveSettings() { lock (stateSyncObject) { if (!PreserveApplicationSettings) { return; } var directory = GetLocalApplicationSettingsDirectory(); var path = Path.Combine(directory, "UltravioletSettings.xml"); this.settings = UltravioletApplicationSettings.FromCurrentSettings(Ultraviolet); UltravioletApplicationSettings.Save(path, settings); } }