From 582df8f9d8229f7777589b81be9ff3631add23e1 Mon Sep 17 00:00:00 2001 From: Nicolas MAYE Date: Tue, 10 Jan 2023 23:45:55 +0100 Subject: [PATCH] =?UTF-8?q?D=C3=A9but=20de=20la=20modification,=20du=20man?= =?UTF-8?q?ager=20et=20persistance?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/IHM/Desktop/CV_Planification.xaml.cs | 4 +++- Sources/IHM/Desktop/DashBoard.xaml | 2 +- Sources/Modele/Manager.cs | 15 +++++++++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/Sources/IHM/Desktop/CV_Planification.xaml.cs b/Sources/IHM/Desktop/CV_Planification.xaml.cs index e1e0488..e796a66 100644 --- a/Sources/IHM/Desktop/CV_Planification.xaml.cs +++ b/Sources/IHM/Desktop/CV_Planification.xaml.cs @@ -39,7 +39,9 @@ public partial class CV_Planification : ContentView planification.Add(new("Loyer", 500, DateTime.Now, MethodePayement.Virement, TagOperation.Habitation, true)); */ - BindingContext = planification; + + + /* BindingContext = Mgr.AllCompte;*/ } diff --git a/Sources/IHM/Desktop/DashBoard.xaml b/Sources/IHM/Desktop/DashBoard.xaml index 6e47998..2017c6f 100644 --- a/Sources/IHM/Desktop/DashBoard.xaml +++ b/Sources/IHM/Desktop/DashBoard.xaml @@ -29,7 +29,7 @@ - + diff --git a/Sources/Modele/Manager.cs b/Sources/Modele/Manager.cs index 3fd7fcd..f2a7bf9 100644 --- a/Sources/Modele/Manager.cs +++ b/Sources/Modele/Manager.cs @@ -57,11 +57,26 @@ namespace Model } private IList banquesDisponibleInApp; + + + //Test + +/* + private List listeDesComptes = new List(); + public ReadOnlyCollection AllCompte { get; private set; } +*/ + public Manager(IPersistanceManager persistance) { + // AllCompte = new ReadOnlyCollection(listeDesComptes); Pers = persistance; } + + + + + void OnPropertyChanged(string propertyName) => PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));