You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
505 B
33 lines
505 B
using System;
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
|
using Model;
|
|
|
|
namespace ViewModels
|
|
{
|
|
[ObservableObject]
|
|
public partial class SkillVM
|
|
{
|
|
[ObservableProperty]
|
|
private Skill model;
|
|
|
|
public SkillVM(Skill model)
|
|
{
|
|
Model = model;
|
|
}
|
|
|
|
public string Name => Model.Name;
|
|
|
|
public SkillType Type => Model.Type;
|
|
|
|
public string Description
|
|
{
|
|
get => Model.Description;
|
|
set
|
|
{
|
|
SetProperty(Model.Description, value, newValue => Model.Description = newValue);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|