From 582df8f9d8229f7777589b81be9ff3631add23e1 Mon Sep 17 00:00:00 2001 From: Nicolas MAYE Date: Tue, 10 Jan 2023 23:45:55 +0100 Subject: [PATCH 01/32] =?UTF-8?q?D=C3=A9but=20de=20la=20modification,=20du?= =?UTF-8?q?=20manager=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)); From 1ca736aa2f2d2f7fd2ca1c36ebdb7eae5836db55 Mon Sep 17 00:00:00 2001 From: Nicolas MAYE Date: Thu, 12 Jan 2023 03:43:30 +0100 Subject: [PATCH 02/32] =?UTF-8?q?impl=C3=A9mentation=20des=20vues=20dans?= =?UTF-8?q?=20la=20partie=20statistique=20+=20ajout=20des=20comboBox?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/Data/Data.csproj | 3 + .../IHM/Desktop/CV_DeletePlanification.xaml | 14 ++-- .../IHM/Desktop/CV_EnregistrerEcheance.xaml | 15 ++-- Sources/IHM/Desktop/CV_Statistiques.xaml | 74 +++++++++++++++++++ Sources/IHM/Desktop/CV_Statistiques.xaml.cs | 17 ++++- Sources/IHM/Desktop/CV_SupprimerEcheance.xaml | 15 ++-- Sources/IHM/Desktop/CV_retirer.xaml | 13 ++-- Sources/IHM/Desktop/CV_supprimerOp.xaml | 15 ++-- Sources/IHM/IHM.csproj | 3 + Sources/IHM/MauiProgram.cs | 16 +++- Sources/Modele/Model.csproj | 3 + .../TestFonctionnel/TestFonctionnel.csproj | 3 + Sources/TestsUnitaires/TestsUnitaires.csproj | 3 + 13 files changed, 150 insertions(+), 44 deletions(-) diff --git a/Sources/Data/Data.csproj b/Sources/Data/Data.csproj index 8ed68db..fa39877 100644 --- a/Sources/Data/Data.csproj +++ b/Sources/Data/Data.csproj @@ -20,6 +20,9 @@ + + + diff --git a/Sources/IHM/Desktop/CV_DeletePlanification.xaml b/Sources/IHM/Desktop/CV_DeletePlanification.xaml index fb5e2be..8ca3fc5 100644 --- a/Sources/IHM/Desktop/CV_DeletePlanification.xaml +++ b/Sources/IHM/Desktop/CV_DeletePlanification.xaml @@ -1,6 +1,7 @@ @@ -23,15 +24,16 @@