mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-03-27 03:15:31 -04:00
34 lines
972 B
C#
34 lines
972 B
C#
using LibationFileManager;
|
|
|
|
namespace LibationAvalonia.ViewModels.Settings
|
|
{
|
|
public class SettingsVM
|
|
{
|
|
public SettingsVM(Configuration config)
|
|
{
|
|
LoadSettings(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 LoadSettings(Configuration config)
|
|
{
|
|
ImportantSettings = new ImportantSettingsVM(config);
|
|
ImportSettings = new ImportSettingsVM(config);
|
|
DownloadDecryptSettings = new DownloadDecryptSettingsVM(config);
|
|
AudioSettings = new AudioSettingsVM(config);
|
|
}
|
|
|
|
public void SaveSettings(Configuration config)
|
|
{
|
|
ImportantSettings.SaveSettings(config);
|
|
ImportSettings.SaveSettings(config);
|
|
DownloadDecryptSettings.SaveSettings(config);
|
|
AudioSettings.SaveSettings(config);
|
|
}
|
|
}
|
|
}
|