public void SaveSettings() { var settings = MainViewModel.Default.AppSettings; settings.BooksSettings.StateFilters = StateFilters.Select(p => p.Value.ToModel()).ToList(); settings.BooksSettings.SelectedBookID = SelectedItem?.ID ?? 0; }
public void SaveSettings() { var settings = MainViewModel.Default.AppSettings; settings.MoviesSettings.StateFilters = StateFilters.Select(p => p.Value.ToModel()).ToList(); settings.MoviesSettings.TypeFilters = TypeFilters.Select(p => p.Value.ToModel()).ToList(); settings.MoviesSettings.SelectedMovieID = SelectedItem?.ID ?? 0; //settings.SaveAppSettings(); }