|
|
@ -9,7 +9,7 @@ using System.Runtime.CompilerServices;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Model
|
|
|
|
namespace Model
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public class Carte : INotifyPropertyChanged
|
|
|
|
public class Carte : IContenu, INotifyPropertyChanged
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public event PropertyChangedEventHandler? PropertyChanged;
|
|
|
|
public event PropertyChangedEventHandler? PropertyChanged;
|
|
|
|
void OnPropertyChanged([CallerMemberName] string ?propertyName = null)
|
|
|
|
void OnPropertyChanged([CallerMemberName] string ?propertyName = null)
|
|
|
@ -17,8 +17,7 @@ namespace Model
|
|
|
|
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
|
|
|
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private readonly string nom;
|
|
|
|
public string Nom { get; set; }
|
|
|
|
public string Nom => nom;
|
|
|
|
|
|
|
|
public string Description {
|
|
|
|
public string Description {
|
|
|
|
get => description;
|
|
|
|
get => description;
|
|
|
|
set {
|
|
|
|
set {
|
|
|
@ -76,7 +75,7 @@ namespace Model
|
|
|
|
private string lienImage;
|
|
|
|
private string lienImage;
|
|
|
|
public Carte(string nom, string pouvoir, string strategie, int? note, string lienImage, string description)
|
|
|
|
public Carte(string nom, string pouvoir, string strategie, int? note, string lienImage, string description)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this.nom = nom;
|
|
|
|
this.Nom = nom;
|
|
|
|
this.description = description;
|
|
|
|
this.description = description;
|
|
|
|
this.pouvoir = pouvoir;
|
|
|
|
this.pouvoir = pouvoir;
|
|
|
|
this.strategie = strategie;
|
|
|
|
this.strategie = strategie;
|
|
|
|