Добавьте файлы проекта.
This commit is contained in:
29
SQLVision.UI/ViewModels/ScriptCategory.cs
Normal file
29
SQLVision.UI/ViewModels/ScriptCategory.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user