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.
52 lines
1002 B
52 lines
1002 B
using System;
|
|
using Model;
|
|
using System.ComponentModel;
|
|
|
|
namespace ViewModel
|
|
{
|
|
public class SkillVm : INotifyPropertyChanged
|
|
{
|
|
public SkillType Type { get => Model.Type; }
|
|
|
|
public Skill Model
|
|
{
|
|
get => _model;
|
|
set
|
|
{
|
|
if (value != _model)
|
|
{
|
|
_model = value;
|
|
|
|
}
|
|
}
|
|
}
|
|
private Skill _model;
|
|
|
|
public event PropertyChangedEventHandler PropertyChanged;
|
|
|
|
public string Name
|
|
{
|
|
get => Model.Name;
|
|
}
|
|
|
|
public string Description
|
|
{
|
|
get => Model.Description;
|
|
set
|
|
{
|
|
if (value != Model.Description)
|
|
{
|
|
Model.Description = value;
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
public SkillVm(Skill model)
|
|
{
|
|
this.Model = model;
|
|
}
|
|
}
|
|
}
|
|
|