From 0a4b1727d87965bc24606ab274f301b81495c572 Mon Sep 17 00:00:00 2001 From: Nicolas MAYE Date: Thu, 12 Jan 2023 04:26:34 +0100 Subject: [PATCH] modification et binding de compte --- Sources/IHM/Desktop/Compte.xaml | 26 ++++++++++++-------------- Sources/IHM/Desktop/Compte.xaml.cs | 2 +- Sources/Modele/Compte.cs | 2 ++ 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Sources/IHM/Desktop/Compte.xaml b/Sources/IHM/Desktop/Compte.xaml index 67f8778..4b1c242 100644 --- a/Sources/IHM/Desktop/Compte.xaml +++ b/Sources/IHM/Desktop/Compte.xaml @@ -32,19 +32,13 @@ Text="Modifier le solde" Style="{StaticResource WindowsButton}"/> - - - + - - - - - + @@ -56,22 +50,26 @@ - - - + + diff --git a/Sources/IHM/Desktop/Compte.xaml.cs b/Sources/IHM/Desktop/Compte.xaml.cs index 03b7c52..1321cb2 100644 --- a/Sources/IHM/Desktop/Compte.xaml.cs +++ b/Sources/IHM/Desktop/Compte.xaml.cs @@ -9,7 +9,7 @@ public partial class Compte : ContentView { InitializeComponent(); - Model.Compte compte = new Model.Compte("", "compte courant", 2000); + Model.Compte compte = new Model.Compte("", "Compte courant", 2000); BindingContext = compte; diff --git a/Sources/Modele/Compte.cs b/Sources/Modele/Compte.cs index d45d38f..1c950a5 100644 --- a/Sources/Modele/Compte.cs +++ b/Sources/Modele/Compte.cs @@ -36,7 +36,9 @@ namespace Model } public Compte(string id,string nom, double solde) : base() { + Nom = nom; Solde = solde; + } public Compte(string id, string nom, double solde, List lesOpe) {