forked from sim0n00ps/OF-DL
23 lines
630 B
C#
23 lines
630 B
C#
using System.Collections.ObjectModel;
|
|
|
|
namespace OF_DL.Gui.ViewModels;
|
|
|
|
public sealed class ConfigCategoryViewModel : ViewModelBase
|
|
{
|
|
public ConfigCategoryViewModel(string categoryName, IEnumerable<ConfigFieldViewModel> fields)
|
|
{
|
|
CategoryName = categoryName;
|
|
foreach (ConfigFieldViewModel field in fields)
|
|
{
|
|
Fields.Add(field);
|
|
}
|
|
}
|
|
|
|
public string CategoryName { get; }
|
|
|
|
public bool IsDownloadBehavior =>
|
|
string.Equals(CategoryName, "Download Behavior", StringComparison.Ordinal);
|
|
|
|
public ObservableCollection<ConfigFieldViewModel> Fields { get; } = [];
|
|
}
|