|
|
|
@ -7,26 +7,29 @@ using System.Threading.Tasks;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Runtime.CompilerServices;
|
|
|
|
|
|
|
|
|
|
namespace Model
|
|
|
|
|
namespace Model.Classes
|
|
|
|
|
{
|
|
|
|
|
public class Carte : IContenu, INotifyPropertyChanged
|
|
|
|
|
{
|
|
|
|
|
public event PropertyChangedEventHandler? PropertyChanged;
|
|
|
|
|
void OnPropertyChanged([CallerMemberName] string ?propertyName = null)
|
|
|
|
|
void OnPropertyChanged([CallerMemberName] string? propertyName = null)
|
|
|
|
|
{
|
|
|
|
|
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Nom { get; set; }
|
|
|
|
|
public string Description {
|
|
|
|
|
public string Description
|
|
|
|
|
{
|
|
|
|
|
get => description;
|
|
|
|
|
set {
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
description = value;
|
|
|
|
|
OnPropertyChanged(nameof(Description));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
private string description;
|
|
|
|
|
public string Pouvoir {
|
|
|
|
|
public string Pouvoir
|
|
|
|
|
{
|
|
|
|
|
get => pouvoir;
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
@ -85,13 +88,13 @@ namespace Model
|
|
|
|
|
private string lienImage;
|
|
|
|
|
public Carte(string nom, string pouvoir, string strategie, int? note, string lienImage, string description)
|
|
|
|
|
{
|
|
|
|
|
this.Nom = nom;
|
|
|
|
|
Nom = nom;
|
|
|
|
|
this.description = description;
|
|
|
|
|
this.pouvoir = pouvoir;
|
|
|
|
|
this.strategie = strategie;
|
|
|
|
|
this.note = note;
|
|
|
|
|
this.lienImage = lienImage;
|
|
|
|
|
this.commentaires = new List<Commentaire>();
|
|
|
|
|
commentaires = new List<Commentaire>();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|