// // SettingsViewModel.cs // // Copyright (c) František Boháček. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Collections.Generic; using System.Linq; using PacketLogger.Models.Filters; namespace PacketLogger.ViewModels.Settings; /// public class SettingsViewModel : ViewModelBase { private readonly FilterProfiles _filterProfiles; /// /// Initializes a new instance of the class. /// /// The filter profiles. public SettingsViewModel(FilterProfiles filterProfiles) { _filterProfiles = filterProfiles; Settings = new[] { new FilterSettingsViewModel(filterProfiles) }; SelectedSetting = Settings.First(); } /// /// Gets the setting tabs list. /// public IReadOnlyList Settings { get; } /// /// Gets the currently selected tab. /// public SettingViewModelBase SelectedSetting { get; } }