29 lines
646 B
C#
29 lines
646 B
C#
using SQLVision.Core.Models;
|
|
using System.Collections.ObjectModel;
|
|
|
|
namespace SQLVision.UI.ViewModels;
|
|
|
|
public class ScriptCategory : ObservableObject
|
|
{
|
|
private string _name;
|
|
private ObservableCollection<ScriptMetadata> _scripts;
|
|
private bool _isExpanded = true;
|
|
|
|
public string Name
|
|
{
|
|
get => _name;
|
|
set => SetProperty(ref _name, value);
|
|
}
|
|
|
|
public ObservableCollection<ScriptMetadata> Scripts
|
|
{
|
|
get => _scripts;
|
|
set => SetProperty(ref _scripts, value);
|
|
}
|
|
|
|
public bool IsExpanded
|
|
{
|
|
get => _isExpanded;
|
|
set => SetProperty(ref _isExpanded, value);
|
|
}
|
|
} |