Example #1
0
 private CurrentSettings DtoToCurrentSettings(PersistedSettingsDto dto)
 {
     return(new CurrentSettings
     {
         AudioSource = dto.AudioSource,
         CurrentProfileName = dto.CurrentProfileName,
         Profiles = dto.Profiles.ToList(),
         AudioSourceSettings = dto.AudioSourceSettings.ToList(),
     });
 }
Example #2
0
 /// <inheritdoc />
 public void WriteSettings(PersistedSettingsDto settings)
 {
     SerializeSettings(DtoToCurrentSettings(settings));
 }