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.

50 lines
938 B

using System;
using LolToolkit;
using Model;
namespace LolVM
{
public class SkillVM : PropertyChangedSender
{
public SkillType Type { get => Model.Type; }
public Skill Model
{
get => _model;
set
{
if (value != _model)
{
_model = value;
OnPropertyChanged();
}
}
}
private Skill _model;
public string Name
{
get => Model.Name;
}
public string Description
{
get => Model.Description;
set
{
if(value != Model.Description)
{
Model.Description = value;
OnPropertyChanged();
}
}
}
public SkillVM(Skill model)
{
this.Model = model;
}
}
}