Files
Needlework.Net/Needlework.Net.Desktop/ViewModels/ParameterViewModel.cs
BlossomiShymae ed89a1d543 WIP
2024-08-08 21:16:02 -05:00

21 lines
577 B
C#

using CommunityToolkit.Mvvm.ComponentModel;
namespace Needlework.Net.Desktop.ViewModels
{
public partial class ParameterViewModel : ObservableObject
{
public string Name { get; }
public string Type { get; }
public bool IsRequired { get; }
[ObservableProperty] private string? _value = null;
public ParameterViewModel(string name, string type, bool isRequired, string? value = null)
{
Name = name;
Type = type;
IsRequired = isRequired;
Value = value;
}
}
}