mirror of
https://github.com/gwdevhub/Daybreak.git
synced 2026-07-26 00:45:18 +00:00
* Resolve warnings and move shared props to Directory.Build.props and Directory.Packages.props * Cleanup more messages * Fix more messages * Fix build issues
30 lines
772 B
C#
30 lines
772 B
C#
using System.ComponentModel;
|
|
using Attribute = Daybreak.Shared.Models.Guildwars.Attribute;
|
|
|
|
namespace Daybreak.Shared.Models.Builds;
|
|
|
|
public sealed class AttributeEntry : INotifyPropertyChanged
|
|
{
|
|
public event PropertyChangedEventHandler? PropertyChanged;
|
|
|
|
public Attribute? Attribute
|
|
{
|
|
get;
|
|
set
|
|
{
|
|
field = value;
|
|
this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(this.Attribute)));
|
|
}
|
|
}
|
|
public int Points
|
|
{
|
|
get;
|
|
set
|
|
{
|
|
field = value;
|
|
this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(this.Points)));
|
|
}
|
|
}
|
|
public override string ToString() => $"{this.Attribute?.Name} - {this.Points}";
|
|
}
|