From 655a5fcd89d70d51ca59d801327eaa97a5e2ba1a Mon Sep 17 00:00:00 2001 From: Anthony RICHARD Date: Sat, 20 May 2023 15:06:24 +0100 Subject: [PATCH] Master detail ok : quand on clique sur un jeu on arrive sur sa page mais il manque les tags et les etoiles sur les notes --- Sources/Stim.Model/Manager.cs | 3 ++ Sources/Stim/DetailledPage.xaml | 60 ++++++++++-------------------- Sources/Stim/DetailledPage.xaml.cs | 1 + Sources/Stim/MainPage.xaml.cs | 4 +- 4 files changed, 26 insertions(+), 42 deletions(-) diff --git a/Sources/Stim.Model/Manager.cs b/Sources/Stim.Model/Manager.cs index 2e2de3f..63aa3e1 100644 --- a/Sources/Stim.Model/Manager.cs +++ b/Sources/Stim.Model/Manager.cs @@ -16,6 +16,9 @@ namespace Model { _persistance = persistance; Games.Add(new("Elden Ring", "description", 2010, new List { "1","2","3"}, "elden_ring.jpg")); + Games[0].AddReview(new(4.5f, "C'est trop bien")); + Games[0].AddReview(new( 3, "C'est bien")); + Games[0].AddReview(new(1.5f, "C'est pas bien")); Games.Add(new("Minecraft", "description", 2010, new List { "1", "2", "3" }, "minecraft.jpeg")); Games.Add(new("Celeste", "description", 2010, new List { "1", "2" }, "celeste.png")); Games.Add(new("GTA V", "description", 2010, new List { "1", "2", "3" }, "gta_v.png")); diff --git a/Sources/Stim/DetailledPage.xaml b/Sources/Stim/DetailledPage.xaml index 178e045..52fa298 100644 --- a/Sources/Stim/DetailledPage.xaml +++ b/Sources/Stim/DetailledPage.xaml @@ -49,15 +49,11 @@ -