Files
Daybreak/Daybreak.Shared/Models/Builds/AttributeEntry.cs
T
amacocian ab1b604aec Code cleanup (#1026)
* Resolve warnings and move shared props to Directory.Build.props and Directory.Packages.props

* Cleanup more messages

* Fix more messages

* Fix build issues
2025-06-29 17:32:52 +02:00

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}";
}