From 9eb0330f33997f74b0d4f21e21a5877cd1ab875b Mon Sep 17 00:00:00 2001 From: bourgoino Date: Thu, 20 Mar 2025 17:41:05 +0100 Subject: [PATCH 1/2] Gestion statut chambre et image edit/delete --- Models/Chambre.cs | 6 ++- Views/Chambre/ChambresPage.xaml | 42 ++++++++------- Views/Chambre/ChambresPage.xaml.cs | 59 +++++++++++++++++++--- Views/Client/ClientsPage.xaml | 29 ++++++----- Views/Client/ClientsPage.xaml.cs | 8 +-- Views/Reservation/ReservationsPage.xaml | 31 ++++++------ Views/Reservation/ReservationsPage.xaml.cs | 6 +-- 7 files changed, 116 insertions(+), 65 deletions(-) diff --git a/Models/Chambre.cs b/Models/Chambre.cs index d3460ca..a9fae54 100644 --- a/Models/Chambre.cs +++ b/Models/Chambre.cs @@ -17,4 +17,8 @@ public class Chambre public int NbPersonne { get; set; } public int StatusId { get; set; } -} + + // Propriété de navigation pour associer l'objet Status (non stockée en base) + [Ignore] + public Status Status { get; set; } +} \ No newline at end of file diff --git a/Views/Chambre/ChambresPage.xaml b/Views/Chambre/ChambresPage.xaml index 649a51d..26e48eb 100644 --- a/Views/Chambre/ChambresPage.xaml +++ b/Views/Chambre/ChambresPage.xaml @@ -1,12 +1,10 @@ - -