using System; using System.Collections.Generic; using System.Collections.ObjectModel; using FModel.Framework; using FModel.ViewModels.Commands; namespace FModel.ViewModels; public class LoadingModesViewModel : ViewModel { private LoadCommand _loadCommand; public LoadCommand LoadCommand => _loadCommand ??= new LoadCommand(this); public ReadOnlyObservableCollection Modes { get; } public LoadingModesViewModel() { Modes = new ReadOnlyObservableCollection(new ObservableCollection(EnumerateLoadingModes())); } private IEnumerable EnumerateLoadingModes() => Enum.GetValues(); }