From 12f7ebad49e528c03199767058b68a523cae08e5 Mon Sep 17 00:00:00 2001 From: hulivet1 Date: Thu, 19 Jan 2023 18:04:00 +0100 Subject: [PATCH 1/3] Binding Mobile --- Sources/IHM/Mobile/AjoutBanques.xaml.cs | 2 +- Sources/IHM/Mobile/Dashboard.xaml | 58 ++++++++++--------- Sources/IHM/Mobile/Dashboard.xaml.cs | 19 +++---- Sources/IHM/Mobile/GestionBanques.xaml | 12 ++-- Sources/IHM/Mobile/GestionBanques.xaml.cs | 2 +- Sources/IHM/Mobile/MainPage.xaml.cs | 2 +- Sources/IHM/Mobile/Operations.xaml | 9 +-- Sources/IHM/Mobile/Operations.xaml.cs | 33 ++--------- Sources/IHM/Mobile/Planification.xaml | 9 +-- Sources/IHM/Mobile/Planification.xaml.cs | 16 +----- Sources/Modele/BanqueInscrit.cs | 17 ++++-- Sources/Modele/Compte.cs | 16 +++++- Sources/Modele/Manager.cs | 68 +++++++++++++++++------ 13 files changed, 142 insertions(+), 121 deletions(-) diff --git a/Sources/IHM/Mobile/AjoutBanques.xaml.cs b/Sources/IHM/Mobile/AjoutBanques.xaml.cs index 8e082b3..6d3991c 100644 --- a/Sources/IHM/Mobile/AjoutBanques.xaml.cs +++ b/Sources/IHM/Mobile/AjoutBanques.xaml.cs @@ -11,7 +11,7 @@ public partial class AjoutBanques : ContentPage { InitializeComponent(); BindingContext = Mgr; - //Mgr.LoadBanques(); + Mgr.LoadBanqueDispo(); if (OperatingSystem.IsIOS()) { boutonRetour.IsVisible = true; diff --git a/Sources/IHM/Mobile/Dashboard.xaml b/Sources/IHM/Mobile/Dashboard.xaml index 8e56b4f..1bc9b00 100644 --- a/Sources/IHM/Mobile/Dashboard.xaml +++ b/Sources/IHM/Mobile/Dashboard.xaml @@ -6,8 +6,9 @@ - - + + + @@ -38,19 +39,23 @@ Clicked="Banques_Clicked"/> + + + + + diff --git a/Sources/IHM/Desktop/CV_HomePage.xaml.cs b/Sources/IHM/Desktop/CV_HomePage.xaml.cs index 4dfd0af..247c51d 100644 --- a/Sources/IHM/Desktop/CV_HomePage.xaml.cs +++ b/Sources/IHM/Desktop/CV_HomePage.xaml.cs @@ -11,10 +11,20 @@ public partial class CV_HomePage : ContentView Mgr.LoadBanque(); Mgr.LoadCompte(); - + Mgr.LoadBanqueDispo(); BindingContext = Mgr; + } + + private void ImportOFX_Clicked(object sender, EventArgs e) + { + + } + + private void AddBanque_Clicked(object sender, EventArgs e) + { + } } \ No newline at end of file diff --git a/Sources/IHM/Desktop/MainPage.xaml.cs b/Sources/IHM/Desktop/MainPage.xaml.cs index 9617a37..474564f 100644 --- a/Sources/IHM/Desktop/MainPage.xaml.cs +++ b/Sources/IHM/Desktop/MainPage.xaml.cs @@ -27,6 +27,7 @@ public partial class MainPage : ContentPage Mgr.createUser(EntryMail.Text); await Navigation.PushAsync(new Dashboard()); + //Mgr.LoadAll(); } else { diff --git a/Sources/Modele/Manager.cs b/Sources/Modele/Manager.cs index 9e22564..da90dc7 100644 --- a/Sources/Modele/Manager.cs +++ b/Sources/Modele/Manager.cs @@ -27,6 +27,7 @@ namespace Model user = value; OnPropertyChanged(nameof(User)); //LoadBanque(); + LoadAll(); } } } @@ -41,7 +42,7 @@ namespace Model { selectedBanque = value; OnPropertyChanged(nameof(SelectedBanque)); - LoadCompte(); + //LoadCompte(); } } }