From 972ccbf5445725ef5a13d298e2993beffef27ac8 Mon Sep 17 00:00:00 2001 From: Matheo HERSAN Date: Mon, 22 May 2023 14:46:21 +0200 Subject: [PATCH] Enhancement of DataBinding --- MangaMap/CustomHeader.xaml | 2 +- MangaMap/DataBinding/INotifyPropertyChanged.cs | 1 - MangaMap/MangaMap.csproj | 2 +- .../Resources/Images/{test.jpg => evangelion.jpg} | Bin .../Resources/Images/{test2.png => oshinoko.png} | Bin MangaMap/Stub/Stub.cs | 4 ++-- MangaMap/Views/ficheAnime.xaml | 14 +++++++------- MangaMap/Views/homePage.xaml | 2 +- MangaMap/Views/homePage.xaml.cs | 1 - 9 files changed, 12 insertions(+), 14 deletions(-) rename MangaMap/Resources/Images/{test.jpg => evangelion.jpg} (100%) rename MangaMap/Resources/Images/{test2.png => oshinoko.png} (100%) diff --git a/MangaMap/CustomHeader.xaml b/MangaMap/CustomHeader.xaml index a6ad4de..d736f8f 100644 --- a/MangaMap/CustomHeader.xaml +++ b/MangaMap/CustomHeader.xaml @@ -3,7 +3,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="MangaMap.NewContent1" Background="{StaticResource Primary}"> - + + - diff --git a/MangaMap/Resources/Images/test.jpg b/MangaMap/Resources/Images/evangelion.jpg similarity index 100% rename from MangaMap/Resources/Images/test.jpg rename to MangaMap/Resources/Images/evangelion.jpg diff --git a/MangaMap/Resources/Images/test2.png b/MangaMap/Resources/Images/oshinoko.png similarity index 100% rename from MangaMap/Resources/Images/test2.png rename to MangaMap/Resources/Images/oshinoko.png diff --git a/MangaMap/Stub/Stub.cs b/MangaMap/Stub/Stub.cs index cebcf6e..7da9893 100644 --- a/MangaMap/Stub/Stub.cs +++ b/MangaMap/Stub/Stub.cs @@ -23,8 +23,8 @@ namespace MangaMap.Stub List genres = new List(); genres.Add("Action"); genres.Add("Future"); - Oeuvre o1 = new Oeuvre("test", genres, "TV", "C'est une bonne série", 4, 150, "test.jpg"); - Oeuvre o2 = new Oeuvre("test2", genres, "DVD", "A la fin il meurt", 2, 24, "test2.png"); + Oeuvre o1 = new Oeuvre("Evangelion", genres, "TV", "C'est une bonne série", 4, 150, "evangelion.jpg"); + Oeuvre o2 = new Oeuvre("[Oshi No Ko]", genres, "DVD", "A la fin il meurt", 2, 24, "oshinoko.png"); l1.Add(o1); l1.Add(o2); l2.Add(u1); l2.Add(u2); l2.Add(u3); diff --git a/MangaMap/Views/ficheAnime.xaml b/MangaMap/Views/ficheAnime.xaml index 0254262..157c2d1 100644 --- a/MangaMap/Views/ficheAnime.xaml +++ b/MangaMap/Views/ficheAnime.xaml @@ -17,10 +17,10 @@ Style="{StaticResource ImageAnime}" BackgroundColor="Orange" Margin="50" - Source="test.jpg" + Source="{Binding AnimeModel.Affiche}" /> -