From 3451f220f80c546b67af8f267961183a7ec4f250 Mon Sep 17 00:00:00 2001 From: V J Date: Mon, 5 Jun 2023 10:01:17 +0200 Subject: [PATCH] gestion des information utilisateurs --- MangaMap/MangaMap.csproj | 1 + MangaMap/Model/Utilisateur.cs | 8 ++++ MangaMap/Resources/Images/ok.png | Bin 0 -> 572 bytes MangaMap/Views/Composants/ListOeuvre.xaml | 14 +++--- MangaMap/Views/FicheAnime.xaml.cs | 51 +++++++++++++++++++--- MangaMap/Views/ficheAnime.xaml | 11 +++-- MangaMap/Views/homePage.xaml.cs | 1 - 7 files changed, 70 insertions(+), 16 deletions(-) create mode 100644 MangaMap/Resources/Images/ok.png diff --git a/MangaMap/MangaMap.csproj b/MangaMap/MangaMap.csproj index 47f3e18..a58d731 100644 --- a/MangaMap/MangaMap.csproj +++ b/MangaMap/MangaMap.csproj @@ -61,6 +61,7 @@ + diff --git a/MangaMap/Model/Utilisateur.cs b/MangaMap/Model/Utilisateur.cs index 1624bfe..60dc889 100644 --- a/MangaMap/Model/Utilisateur.cs +++ b/MangaMap/Model/Utilisateur.cs @@ -25,6 +25,10 @@ namespace MangaMap.Model public ObservableCollection ListeOeuvrePourPlusTard { get; set; } [DataMember] public ObservableCollection ListeOeuvreFavorites { get; set; } + [DataMember] + public Dictionary notesOeuvres { get; set; } + [DataMember] + public Dictionary episodesVus { get; set; } public Utilisateur(string email, string pseudo, string mdp, string nom, string prenom, int age) { @@ -39,6 +43,8 @@ namespace MangaMap.Model ListeOeuvreDejaVu = new ObservableCollection(); ListeOeuvrePourPlusTard = new ObservableCollection(); ListeOeuvreFavorites = new ObservableCollection(); + notesOeuvres = new Dictionary(); + episodesVus = new Dictionary(); } public Utilisateur() { @@ -46,6 +52,8 @@ namespace MangaMap.Model ListeOeuvreDejaVu = new ObservableCollection(); ListeOeuvrePourPlusTard = new ObservableCollection(); ListeOeuvreFavorites = new ObservableCollection(); + notesOeuvres = new Dictionary(); + episodesVus = new Dictionary(); } public void SupprimerUtilisateur() diff --git a/MangaMap/Resources/Images/ok.png b/MangaMap/Resources/Images/ok.png new file mode 100644 index 0000000000000000000000000000000000000000..d8f2145da6f7099fd1a979f7edcd8506dbe27e4f GIT binary patch literal 572 zcmV-C0>k}@P)Px$_DMuRRA@u(m|rUeK^VrLLrGGSq$DXxZX_j1Ns^MJgiqntosZzowJ#tfNs=T< zCz2$RBuSDaB}o#!demN=KeO}Bo;_PLx97~ezu)uD>`a?N!bd9M{O|&CchGmhcR-nd zUqZ?N)zf_k)DbER_zoxo%r<=jKox+6eD#a51LFXefWK?b41l>@62&Gk24ERLDWNX_ zOaVC0CQ(cRqfEYxu$P2COF{=m2wzUvE5e^9VGj%wzJjpVgg?m#FTcmVgoe20D+zl; z_+u0JxCI88yu2=D+!FrC6h2OY0m4@k_71=#fWt8GaS8MjzJ{>(ginWs4j?Wu_@#cbYT-=`vySn_**XFZ3Ijt+6mu6*muHjx`wwE$R$xi_*TMx5Pl;Hc#S|d2@z-` z>?h&Zqk`88WRm!2{UZEYl<+PDGD&f`Jp6)xKj!;>^cR(4SdipQ9r(Q8 - +