mirror of
https://github.com/BlossomiShymae/Needlework.Net.git
synced 2025-12-06 10:10:48 +01:00
21 lines
577 B
C#
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;
|
|
}
|
|
}
|
|
}
|