diff --git a/Sources/IHM/Desktop/CV_EnregistrerEcheance.xaml b/Sources/IHM/Desktop/CV_EnregistrerEcheance.xaml
index b52bc39..76449c6 100644
--- a/Sources/IHM/Desktop/CV_EnregistrerEcheance.xaml
+++ b/Sources/IHM/Desktop/CV_EnregistrerEcheance.xaml
@@ -27,7 +27,7 @@
-
+
diff --git a/Sources/IHM/Desktop/CV_EnregistrerEcheance.xaml.cs b/Sources/IHM/Desktop/CV_EnregistrerEcheance.xaml.cs
index b2f2390..ec38b24 100644
--- a/Sources/IHM/Desktop/CV_EnregistrerEcheance.xaml.cs
+++ b/Sources/IHM/Desktop/CV_EnregistrerEcheance.xaml.cs
@@ -1,11 +1,16 @@
+
+
namespace IHM.Desktop;
public partial class CV_EnregistrerEcheance : ContentView
{
+
public CV_EnregistrerEcheance()
{
InitializeComponent();
- }
+
+
+ }
private void Button_Clicked(object sender, EventArgs e)
{
diff --git a/Sources/IHM/Desktop/CV_HomePage.xaml.cs b/Sources/IHM/Desktop/CV_HomePage.xaml.cs
index 66e84eb..0b99a9f 100644
--- a/Sources/IHM/Desktop/CV_HomePage.xaml.cs
+++ b/Sources/IHM/Desktop/CV_HomePage.xaml.cs
@@ -1,9 +1,17 @@
+using Model;
+
namespace IHM.Desktop;
public partial class CV_HomePage : ContentView
{
- public CV_HomePage()
+ public Manager Mgr => (App.Current as App).Manager;
+ public CV_HomePage()
{
InitializeComponent();
- }
+
+ Mgr.LoadBanque();
+ Mgr.LoadCompte();
+
+ BindingContext = Mgr;
+ }
}
\ No newline at end of file
diff --git a/Sources/IHM/Desktop/CV_Planification.xaml b/Sources/IHM/Desktop/CV_Planification.xaml
index 7bdfdcf..b3a5415 100644
--- a/Sources/IHM/Desktop/CV_Planification.xaml
+++ b/Sources/IHM/Desktop/CV_Planification.xaml
@@ -41,7 +41,7 @@
-
+
diff --git a/Sources/IHM/Desktop/CV_Planification.xaml.cs b/Sources/IHM/Desktop/CV_Planification.xaml.cs
index e796a66..3c99f22 100644
--- a/Sources/IHM/Desktop/CV_Planification.xaml.cs
+++ b/Sources/IHM/Desktop/CV_Planification.xaml.cs
@@ -10,38 +10,14 @@ public partial class CV_Planification : ContentView
public Manager Mgr => (App.Current as App).Manager;
- List planification;
public CV_Planification()
{
InitializeComponent();
- planification = new List();
-
- /*planification.Add(new("Eau", 55, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
- planification.Add(new("Amazon", 103.30, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
- planification.Add(new("Mutuelle", 38.50, DateTime.Now, MethodePayement.Prevelement, TagOperation.Santé, true));
- planification.Add(new("Loyer", 500, DateTime.Now, MethodePayement.Virement, TagOperation.Habitation, true));
- planification.Add(new("Eau", 55, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
- planification.Add(new("Amazon", 103.30, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
- planification.Add(new("Mutuelle", 38.50, DateTime.Now, MethodePayement.Prevelement, TagOperation.Santé, true));
- planification.Add(new("Loyer", 500, DateTime.Now, MethodePayement.Virement, TagOperation.Habitation, true));
- planification.Add(new("Eau", 55, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
- planification.Add(new("Amazon", 103.30, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
- planification.Add(new("Mutuelle", 38.50, DateTime.Now, MethodePayement.Prevelement, TagOperation.Santé, true));
- planification.Add(new("Loyer", 500, DateTime.Now, MethodePayement.Virement, TagOperation.Habitation, true));
- planification.Add(new("Eau", 55, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
- planification.Add(new("Amazon", 103.30, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
- planification.Add(new("Mutuelle", 38.50, DateTime.Now, MethodePayement.Prevelement, TagOperation.Santé, true));
- planification.Add(new("Loyer", 500, DateTime.Now, MethodePayement.Virement, TagOperation.Habitation, true));
- planification.Add(new("Eau", 55, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
- planification.Add(new("Amazon", 103.30, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
- planification.Add(new("Mutuelle", 38.50, DateTime.Now, MethodePayement.Prevelement, TagOperation.Santé, true));
- planification.Add(new("Loyer", 500, DateTime.Now, MethodePayement.Virement, TagOperation.Habitation, true));
- */
-
-
-
- /* BindingContext = Mgr.AllCompte;*/
+ Mgr.LoadBanque();
+ Mgr.LoadCompte();
+
+ BindingContext = Mgr;
}
diff --git a/Sources/IHM/Desktop/CV_Statistiques.xaml b/Sources/IHM/Desktop/CV_Statistiques.xaml
index e7ca819..e23d72e 100644
--- a/Sources/IHM/Desktop/CV_Statistiques.xaml
+++ b/Sources/IHM/Desktop/CV_Statistiques.xaml
@@ -47,8 +47,8 @@
-
+
+
diff --git a/Sources/IHM/Desktop/CV_Statistiques.xaml.cs b/Sources/IHM/Desktop/CV_Statistiques.xaml.cs
index 857614d..3b9f1f7 100644
--- a/Sources/IHM/Desktop/CV_Statistiques.xaml.cs
+++ b/Sources/IHM/Desktop/CV_Statistiques.xaml.cs
@@ -18,6 +18,7 @@ public partial class CV_Statistiques : ContentView
operations.Add(new("Orange", 50, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
operations.Add(new("EDF", 55.80, DateTime.Now, MethodePayement.Virement, TagOperation.Energie, true));
operations.Add(new("EDF", 55.80, DateTime.Now, MethodePayement.Virement, TagOperation.Energie, true));
+ operations.Add(new("EDF", 55.80, DateTime.Now, MethodePayement.Virement, TagOperation.Carburant, true));
BindingContext = operations;
}
diff --git a/Sources/IHM/Desktop/CV_SupprimerEcheance.xaml b/Sources/IHM/Desktop/CV_SupprimerEcheance.xaml
index 7c518ee..fdf364e 100644
--- a/Sources/IHM/Desktop/CV_SupprimerEcheance.xaml
+++ b/Sources/IHM/Desktop/CV_SupprimerEcheance.xaml
@@ -26,10 +26,10 @@
-
-
+
+
diff --git a/Sources/IHM/Desktop/CV_SupprimerEcheance.xaml.cs b/Sources/IHM/Desktop/CV_SupprimerEcheance.xaml.cs
index 81fd2f1..3f70bf5 100644
--- a/Sources/IHM/Desktop/CV_SupprimerEcheance.xaml.cs
+++ b/Sources/IHM/Desktop/CV_SupprimerEcheance.xaml.cs
@@ -1,11 +1,32 @@
+using Model;
+
namespace IHM.Desktop;
public partial class CV_SupprimerEcheance : ContentView
{
+ List echeancier;
public CV_SupprimerEcheance()
{
InitializeComponent();
- }
+
+
+ echeancier = new List();
+
+ echeancier.Add(new("Eau", 55, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
+ echeancier.Add(new("Amazon", 103.30, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
+ echeancier.Add(new("Mutuelle", 38.50, DateTime.Now, MethodePayement.Prevelement, TagOperation.Santé, true));
+ echeancier.Add(new("Loyer", 500, DateTime.Now, MethodePayement.Virement, TagOperation.Habitation, true));
+ echeancier.Add(new("Eau", 55, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
+ echeancier.Add(new("Amazon", 103.30, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
+ echeancier.Add(new("Mutuelle", 38.50, DateTime.Now, MethodePayement.Prevelement, TagOperation.Santé, true));
+ echeancier.Add(new("Loyer", 500, DateTime.Now, MethodePayement.Virement, TagOperation.Habitation, true));
+ echeancier.Add(new("Eau", 55, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
+ echeancier.Add(new("Amazon", 103.30, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
+ echeancier.Add(new("Mutuelle", 38.50, DateTime.Now, MethodePayement.Prevelement, TagOperation.Santé, true));
+ echeancier.Add(new("Loyer", 500, DateTime.Now, MethodePayement.Virement, TagOperation.Habitation, true));
+
+ BindingContext = echeancier;
+ }
private void Button_Clicked(object sender, EventArgs e)
{
diff --git a/Sources/IHM/Desktop/DashBoard.xaml b/Sources/IHM/Desktop/DashBoard.xaml
index 2017c6f..27f0128 100644
--- a/Sources/IHM/Desktop/DashBoard.xaml
+++ b/Sources/IHM/Desktop/DashBoard.xaml
@@ -28,14 +28,14 @@
-
+
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/Sources/IHM/Desktop/Dashboard.xaml.cs b/Sources/IHM/Desktop/Dashboard.xaml.cs
index 80a436f..c783b22 100644
--- a/Sources/IHM/Desktop/Dashboard.xaml.cs
+++ b/Sources/IHM/Desktop/Dashboard.xaml.cs
@@ -13,19 +13,20 @@ public partial class Dashboard
private void RetourFormeBase()
{
- ButPla.BackgroundColor = Color.FromArgb("F7B548"); ButPla.TextColor = Colors.Black;
- ButEch.BackgroundColor = Color.FromArgb("F7B548"); ButEch.TextColor = Colors.Black;
- ButOpe.BackgroundColor = Color.FromArgb("F7B548"); ButOpe.TextColor = Colors.Black;
- ButCom.BackgroundColor = Color.FromArgb("F7B548"); ButCom.TextColor = Colors.Black;
- ButAcc.BackgroundColor = Color.FromArgb("F7B548"); ButAcc.TextColor = Colors.Black;
- ButSta.BackgroundColor = Color.FromArgb("F7B548"); ButSta.TextColor = Colors.Black;
+ ButPla.BackgroundColor = Color.FromArgb("E1E1E1"); ButPla.TextColor = Colors.Black;
+ ButEch.BackgroundColor = Color.FromArgb("E1E1E1"); ButEch.TextColor = Colors.Black;
+ ButOpe.BackgroundColor = Color.FromArgb("E1E1E1"); ButOpe.TextColor = Colors.Black;
+ ButCom.BackgroundColor = Color.FromArgb("E1E1E1"); ButCom.TextColor = Colors.Black;
+ ButAcc.BackgroundColor = Color.FromArgb("E1E1E1"); ButAcc.TextColor = Colors.Black;
+ ButSta.BackgroundColor = Color.FromArgb("E1E1E1"); ButSta.TextColor = Colors.Black;
+
}
private void Button_planification(object sender, EventArgs e)
{
RetourFormeBase();
ButPla.TextColor = Colors.White;
- ButPla.BackgroundColor = Color.FromArgb("DF775C");
+ ButPla.BackgroundColor = Color.FromArgb("7FB196");
mainCV.Content= new CV_Planification();
}
@@ -33,7 +34,7 @@ public partial class Dashboard
{
RetourFormeBase();
ButEch.TextColor = Colors.White;
- ButEch.BackgroundColor = Color.FromArgb("DF775C");
+ ButEch.BackgroundColor = Color.FromArgb("7FB196");
mainCV.Content = new Echeancier();
}
@@ -41,7 +42,7 @@ public partial class Dashboard
{
RetourFormeBase();
ButOpe.TextColor = Colors.White;
- ButOpe.BackgroundColor = Color.FromArgb("DF775C");
+ ButOpe.BackgroundColor = Color.FromArgb("7FB196");
mainCV.Content = new Operations();
}
@@ -49,7 +50,7 @@ public partial class Dashboard
{
RetourFormeBase();
ButCom.TextColor = Colors.White;
- ButCom.BackgroundColor = Color.FromArgb("DF775C");
+ ButCom.BackgroundColor = Color.FromArgb("7FB196");
mainCV.Content = new Compte();
}
@@ -57,7 +58,7 @@ public partial class Dashboard
{
RetourFormeBase();
ButSta.TextColor = Colors.White;
- ButSta.BackgroundColor = Color.FromArgb("DF775C");
+ ButSta.BackgroundColor = Color.FromArgb("7FB196");
mainCV.Content = new CV_Statistiques();
}
@@ -65,7 +66,7 @@ public partial class Dashboard
{
RetourFormeBase();
ButAcc.TextColor = Colors.White;
- ButAcc.BackgroundColor = Color.FromArgb("DF775C");
+ ButAcc.BackgroundColor = Color.FromArgb("7FB196");
mainCV.Content = new CV_HomePage();
}
@@ -73,8 +74,9 @@ public partial class Dashboard
{
RetourFormeBase();
ButLog.TextColor = Colors.White;
- ButLog.BackgroundColor = Color.FromArgb("DF775C");
+ ButLog.BackgroundColor = Color.FromArgb("7FB196");
mainCV.Content = new CV_Log();
}
+
}
\ No newline at end of file
diff --git a/Sources/IHM/Desktop/Echeancier.xaml.cs b/Sources/IHM/Desktop/Echeancier.xaml.cs
index faa423b..8d6ddc1 100644
--- a/Sources/IHM/Desktop/Echeancier.xaml.cs
+++ b/Sources/IHM/Desktop/Echeancier.xaml.cs
@@ -4,27 +4,15 @@ namespace IHM.Desktop;
public partial class Echeancier : ContentView
{
- List echeancier;
- public Echeancier()
+ public Manager Mgr => (App.Current as App).Manager;
+ public Echeancier()
{
InitializeComponent();
- echeancier = new List();
-
- echeancier.Add(new("Eau", 55, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
- echeancier.Add(new("Amazon", 103.30, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
- echeancier.Add(new("Mutuelle", 38.50, DateTime.Now, MethodePayement.Prevelement, TagOperation.Santé, true));
- echeancier.Add(new("Loyer", 500, DateTime.Now, MethodePayement.Virement, TagOperation.Habitation, true));
- echeancier.Add(new("Eau", 55, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
- echeancier.Add(new("Amazon", 103.30, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
- echeancier.Add(new("Mutuelle", 38.50, DateTime.Now, MethodePayement.Prevelement, TagOperation.Santé, true));
- echeancier.Add(new("Loyer", 500, DateTime.Now, MethodePayement.Virement, TagOperation.Habitation, true));
- echeancier.Add(new("Eau", 55, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
- echeancier.Add(new("Amazon", 103.30, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
- echeancier.Add(new("Mutuelle", 38.50, DateTime.Now, MethodePayement.Prevelement, TagOperation.Santé, true));
- echeancier.Add(new("Loyer", 500, DateTime.Now, MethodePayement.Virement, TagOperation.Habitation, true));
+ Mgr.LoadBanque();
+ Mgr.LoadCompte();
- BindingContext = echeancier;
+ BindingContext = Mgr;
}
diff --git a/Sources/IHM/Desktop/Operations.xaml.cs b/Sources/IHM/Desktop/Operations.xaml.cs
index d63b6e4..2b9e67f 100644
--- a/Sources/IHM/Desktop/Operations.xaml.cs
+++ b/Sources/IHM/Desktop/Operations.xaml.cs
@@ -6,37 +6,16 @@ public partial class Operations : ContentView
{
- List operations;
+ public Manager Mgr => (App.Current as App).Manager;
public Operations()
{
InitializeComponent();
- // Temporaire pour établir le binding de la vue
- operations = new List();
- operations.Add(new("op", 33.44, DateTime.Now, MethodePayement.CB, TagOperation.Divers, false));
- operations.Add(new("course", 45.20, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
- operations.Add(new("Orange", 50, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
- operations.Add(new("EDF", 55.80, DateTime.Now, MethodePayement.Virement, TagOperation.Energie, true));
- operations.Add(new("op", 33.44, DateTime.Now, MethodePayement.CB, TagOperation.Divers, false));
- operations.Add(new("course", 45.20, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
- operations.Add(new("Orange", 50, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
- operations.Add(new("EDF", 55.80, DateTime.Now, MethodePayement.Virement, TagOperation.Energie, true));
- operations.Add(new("op", 33.44, DateTime.Now, MethodePayement.CB, TagOperation.Divers, false));
- operations.Add(new("course", 45.20, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
- operations.Add(new("Orange", 50, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
- operations.Add(new("EDF", 55.80, DateTime.Now, MethodePayement.Virement, TagOperation.Energie, true));
- operations.Add(new("op", 33.44, DateTime.Now, MethodePayement.CB, TagOperation.Divers, false));
- operations.Add(new("course", 45.20, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
- operations.Add(new("Orange", 50, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
- operations.Add(new("EDF", 55.80, DateTime.Now, MethodePayement.Virement, TagOperation.Energie, true));
- operations.Add(new("op", 33.44, DateTime.Now, MethodePayement.CB, TagOperation.Divers, false));
- operations.Add(new("course", 45.20, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
- operations.Add(new("Orange", 50, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
- operations.Add(new("EDF", 55.80, DateTime.Now, MethodePayement.Virement, TagOperation.Energie, true));
-
-
-
- BindingContext = operations;
+
+ Mgr.LoadBanque();
+ Mgr.LoadCompte();
+
+ BindingContext = Mgr;
}
private void AddCredit_Clicked(object sender, EventArgs e)
diff --git a/Sources/IHM/Resources/Styles/Colors.xaml b/Sources/IHM/Resources/Styles/Colors.xaml
index e2d7beb..f80627a 100644
--- a/Sources/IHM/Resources/Styles/Colors.xaml
+++ b/Sources/IHM/Resources/Styles/Colors.xaml
@@ -4,6 +4,7 @@
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
+ #DF775C
#7FB196
#3C425A
#F3EFDB
@@ -42,9 +43,11 @@
#A7CBF6
-
+
-
+
+
+
\ No newline at end of file
diff --git a/Sources/IHM/Resources/Styles/Styles.xaml b/Sources/IHM/Resources/Styles/Styles.xaml
index cbcf3cd..06b1a1f 100644
--- a/Sources/IHM/Resources/Styles/Styles.xaml
+++ b/Sources/IHM/Resources/Styles/Styles.xaml
@@ -413,7 +413,7 @@
-
+