From 3b65744d36b787048268326b45637d4d0c5ed6f6 Mon Sep 17 00:00:00 2001 From: Anthony RICHARD Date: Sat, 20 May 2023 17:49:51 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20des=20=C3=A9toiles=20pour=20les=20notes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/Stim.Model/Manager.cs | 4 ++-- Sources/Stim/DetailledPage.xaml | 18 ++++-------------- Sources/Stim/DetailledPage.xaml.cs | 20 +++++++++++++++++++- 3 files changed, 25 insertions(+), 17 deletions(-) diff --git a/Sources/Stim.Model/Manager.cs b/Sources/Stim.Model/Manager.cs index 63aa3e1..9c82f83 100644 --- a/Sources/Stim.Model/Manager.cs +++ b/Sources/Stim.Model/Manager.cs @@ -16,8 +16,8 @@ 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(5, "C'est trop bien")); + Games[0].AddReview(new(3.5f, "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")); diff --git a/Sources/Stim/DetailledPage.xaml b/Sources/Stim/DetailledPage.xaml index 52fa298..987a5aa 100644 --- a/Sources/Stim/DetailledPage.xaml +++ b/Sources/Stim/DetailledPage.xaml @@ -62,13 +62,8 @@