mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-03-25 18:31:23 -04:00
Make fields readonly Remove unnecessary casts Format document Remove unnecessary usings Sort usings Use file-level namespaces Order modifiers
28 lines
866 B
C#
28 lines
866 B
C#
using LibationFileManager;
|
|
|
|
namespace LibationAvalonia.ViewModels.Settings;
|
|
|
|
public class SettingsVM
|
|
{
|
|
public SettingsVM(Configuration config)
|
|
{
|
|
ImportantSettings = new ImportantSettingsVM(config);
|
|
ImportSettings = new ImportSettingsVM(config);
|
|
DownloadDecryptSettings = new DownloadDecryptSettingsVM(config);
|
|
AudioSettings = new AudioSettingsVM(config);
|
|
}
|
|
|
|
public ImportantSettingsVM ImportantSettings { get; private set; }
|
|
public ImportSettingsVM ImportSettings { get; private set; }
|
|
public DownloadDecryptSettingsVM DownloadDecryptSettings { get; private set; }
|
|
public AudioSettingsVM AudioSettings { get; private set; }
|
|
|
|
public void SaveSettings(Configuration config)
|
|
{
|
|
ImportantSettings.SaveSettings(config);
|
|
ImportSettings.SaveSettings(config);
|
|
DownloadDecryptSettings.SaveSettings(config);
|
|
AudioSettings.SaveSettings(config);
|
|
}
|
|
}
|