mirror of
https://github.com/4sval/FModel.git
synced 2026-03-22 09:44:37 -05:00
22 lines
686 B
C#
22 lines
686 B
C#
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<ELoadingMode> Modes { get; }
|
|
|
|
public LoadingModesViewModel()
|
|
{
|
|
Modes = new ReadOnlyObservableCollection<ELoadingMode>(new ObservableCollection<ELoadingMode>(EnumerateLoadingModes()));
|
|
}
|
|
|
|
private IEnumerable<ELoadingMode> EnumerateLoadingModes() => Enum.GetValues<ELoadingMode>();
|
|
} |