Retrait de l'implémentation de l'interface de changement de propriété

pull/97/head
Rémi LAVERGNE 11 months ago
parent 312067c84f
commit a71a65ed1b
No known key found for this signature in database
GPG Key ID: 7BCBAE9031E39160

@ -7,7 +7,7 @@ namespace Models.Game
/// <summary>
/// The Position (x,y) of a cell in the game.
/// </summary>
public class Position : INotifyPropertyChanged
public class Position
{
/// <summary>
/// The X coordinate.
@ -29,19 +29,5 @@ namespace Models.Game
X = x;
Y = y;
}
/// <summary>
/// Event raised when a property is changed to notify the view.
/// </summary>
public event PropertyChangedEventHandler PropertyChanged;
/// <summary>
/// Trigger the PropertyChanged event for a specific property.
/// </summary>
/// <param name="propertyName">Name of the property that changed.</param>
protected virtual void OnPropertyChanged(string propertyName)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}
Loading…
Cancel
Save