diff --git a/Sources/IHM/AppShellDesktop.xaml b/Sources/IHM/AppShellDesktop.xaml
index 96abad7..a84f38e 100644
--- a/Sources/IHM/AppShellDesktop.xaml
+++ b/Sources/IHM/AppShellDesktop.xaml
@@ -8,7 +8,7 @@
Shell.NavBarIsVisible="False">
diff --git a/Sources/IHM/AppShellDesktop.xaml.cs b/Sources/IHM/AppShellDesktop.xaml.cs
index 6775d2f..646e1f1 100644
--- a/Sources/IHM/AppShellDesktop.xaml.cs
+++ b/Sources/IHM/AppShellDesktop.xaml.cs
@@ -10,6 +10,9 @@ namespace IHM
public partial class AppShellDesktop : Shell
{
public Manager Mgr => (App.Current as App).Manager;
+ public Manager Mgr2 => (App.Current as App).Manager;
+
+
public AppShellDesktop()
{
diff --git a/Sources/IHM/Desktop/CV_AddPlanification.xaml b/Sources/IHM/Desktop/CV_AddPlanification.xaml
index 7c988d8..d114a1c 100644
--- a/Sources/IHM/Desktop/CV_AddPlanification.xaml
+++ b/Sources/IHM/Desktop/CV_AddPlanification.xaml
@@ -4,7 +4,7 @@
x:Class="IHM.Desktop.CV_AddPlanification">
-
+
diff --git a/Sources/IHM/Desktop/CV_DeletePlanification.xaml b/Sources/IHM/Desktop/CV_DeletePlanification.xaml
new file mode 100644
index 0000000..fb5e2be
--- /dev/null
+++ b/Sources/IHM/Desktop/CV_DeletePlanification.xaml
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Sources/IHM/Desktop/CV_DeletePlanification.xaml.cs b/Sources/IHM/Desktop/CV_DeletePlanification.xaml.cs
new file mode 100644
index 0000000..330a915
--- /dev/null
+++ b/Sources/IHM/Desktop/CV_DeletePlanification.xaml.cs
@@ -0,0 +1,19 @@
+namespace IHM.Desktop;
+
+public partial class CV_DeletePlanification : ContentView
+{
+ public CV_DeletePlanification()
+ {
+ InitializeComponent();
+ }
+
+ private void Button_Clicked(object sender, EventArgs e)
+ {
+
+ }
+
+ private void Button_Clicked_1(object sender, EventArgs e)
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/Sources/IHM/Desktop/CV_EnregistrerEcheance.xaml b/Sources/IHM/Desktop/CV_EnregistrerEcheance.xaml
new file mode 100644
index 0000000..c66afe2
--- /dev/null
+++ b/Sources/IHM/Desktop/CV_EnregistrerEcheance.xaml
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Sources/IHM/Desktop/CV_EnregistrerEcheance.xaml.cs b/Sources/IHM/Desktop/CV_EnregistrerEcheance.xaml.cs
new file mode 100644
index 0000000..b2f2390
--- /dev/null
+++ b/Sources/IHM/Desktop/CV_EnregistrerEcheance.xaml.cs
@@ -0,0 +1,19 @@
+namespace IHM.Desktop;
+
+public partial class CV_EnregistrerEcheance : ContentView
+{
+ public CV_EnregistrerEcheance()
+ {
+ InitializeComponent();
+ }
+
+ private void Button_Clicked(object sender, EventArgs e)
+ {
+
+ }
+
+ private void Button_Clicked_1(object sender, EventArgs e)
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/Sources/IHM/Desktop/CV_HomePage.xaml b/Sources/IHM/Desktop/CV_HomePage.xaml
new file mode 100644
index 0000000..709f8dd
--- /dev/null
+++ b/Sources/IHM/Desktop/CV_HomePage.xaml
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Sources/IHM/Desktop/CV_HomePage.xaml.cs b/Sources/IHM/Desktop/CV_HomePage.xaml.cs
new file mode 100644
index 0000000..66e84eb
--- /dev/null
+++ b/Sources/IHM/Desktop/CV_HomePage.xaml.cs
@@ -0,0 +1,9 @@
+namespace IHM.Desktop;
+
+public partial class CV_HomePage : ContentView
+{
+ public CV_HomePage()
+ {
+ InitializeComponent();
+ }
+}
\ No newline at end of file
diff --git a/Sources/IHM/Desktop/CV_Log.xaml b/Sources/IHM/Desktop/CV_Log.xaml
new file mode 100644
index 0000000..71efb29
--- /dev/null
+++ b/Sources/IHM/Desktop/CV_Log.xaml
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Sources/IHM/Desktop/CV_Log.xaml.cs b/Sources/IHM/Desktop/CV_Log.xaml.cs
new file mode 100644
index 0000000..82ec39c
--- /dev/null
+++ b/Sources/IHM/Desktop/CV_Log.xaml.cs
@@ -0,0 +1,9 @@
+namespace IHM.Desktop;
+
+public partial class CV_Log : ContentView
+{
+ public CV_Log()
+ {
+ InitializeComponent();
+ }
+}
\ No newline at end of file
diff --git a/Sources/IHM/Desktop/CV_Planification.xaml b/Sources/IHM/Desktop/CV_Planification.xaml
index 7c38479..7bdfdcf 100644
--- a/Sources/IHM/Desktop/CV_Planification.xaml
+++ b/Sources/IHM/Desktop/CV_Planification.xaml
@@ -6,6 +6,7 @@
+
@@ -15,42 +16,93 @@
+
+
+
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
+
diff --git a/Sources/IHM/Desktop/CV_Planification.xaml.cs b/Sources/IHM/Desktop/CV_Planification.xaml.cs
index 890d95c..0b08ffc 100644
--- a/Sources/IHM/Desktop/CV_Planification.xaml.cs
+++ b/Sources/IHM/Desktop/CV_Planification.xaml.cs
@@ -5,14 +5,43 @@ namespace IHM.Desktop;
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 = planification;
+
+ }
- }
private void Button_Clicked(object sender, EventArgs e)
{
@@ -21,6 +50,6 @@ public partial class CV_Planification : ContentView
private void Button_Clicked_1(object sender, EventArgs e)
{
-
- }
+ windowAjout.Content = new CV_DeletePlanification();
+ }
}
\ No newline at end of file
diff --git a/Sources/IHM/Desktop/CV_Statistiques.xaml b/Sources/IHM/Desktop/CV_Statistiques.xaml
new file mode 100644
index 0000000..22b9599
--- /dev/null
+++ b/Sources/IHM/Desktop/CV_Statistiques.xaml
@@ -0,0 +1,70 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Sources/IHM/Desktop/CV_Statistiques.xaml.cs b/Sources/IHM/Desktop/CV_Statistiques.xaml.cs
new file mode 100644
index 0000000..171fd80
--- /dev/null
+++ b/Sources/IHM/Desktop/CV_Statistiques.xaml.cs
@@ -0,0 +1,9 @@
+namespace IHM.Desktop;
+
+public partial class CV_Statistiques : ContentView
+{
+ public CV_Statistiques()
+ {
+ InitializeComponent();
+ }
+}
\ No newline at end of file
diff --git a/Sources/IHM/Desktop/CV_SupprimerEcheance.xaml b/Sources/IHM/Desktop/CV_SupprimerEcheance.xaml
new file mode 100644
index 0000000..930b97a
--- /dev/null
+++ b/Sources/IHM/Desktop/CV_SupprimerEcheance.xaml
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Sources/IHM/Desktop/CV_SupprimerEcheance.xaml.cs b/Sources/IHM/Desktop/CV_SupprimerEcheance.xaml.cs
new file mode 100644
index 0000000..81fd2f1
--- /dev/null
+++ b/Sources/IHM/Desktop/CV_SupprimerEcheance.xaml.cs
@@ -0,0 +1,19 @@
+namespace IHM.Desktop;
+
+public partial class CV_SupprimerEcheance : ContentView
+{
+ public CV_SupprimerEcheance()
+ {
+ InitializeComponent();
+ }
+
+ private void Button_Clicked(object sender, EventArgs e)
+ {
+
+ }
+
+ private void Button_Clicked_1(object sender, EventArgs e)
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/Sources/IHM/Desktop/CV_credit.xaml b/Sources/IHM/Desktop/CV_credit.xaml
new file mode 100644
index 0000000..d481213
--- /dev/null
+++ b/Sources/IHM/Desktop/CV_credit.xaml
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Sources/IHM/Desktop/CV_credit.xaml.cs b/Sources/IHM/Desktop/CV_credit.xaml.cs
new file mode 100644
index 0000000..c683740
--- /dev/null
+++ b/Sources/IHM/Desktop/CV_credit.xaml.cs
@@ -0,0 +1,19 @@
+namespace IHM.Desktop;
+
+public partial class CV_credit : ContentView
+{
+ public CV_credit()
+ {
+ InitializeComponent();
+ }
+
+ private void Button_Clicked(object sender, EventArgs e)
+ {
+
+ }
+
+ private void Button_Clicked_1(object sender, EventArgs e)
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/Sources/IHM/Desktop/CV_debit.xaml b/Sources/IHM/Desktop/CV_debit.xaml
new file mode 100644
index 0000000..452ba8d
--- /dev/null
+++ b/Sources/IHM/Desktop/CV_debit.xaml
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Sources/IHM/Desktop/CV_debit.xaml.cs b/Sources/IHM/Desktop/CV_debit.xaml.cs
new file mode 100644
index 0000000..81e9370
--- /dev/null
+++ b/Sources/IHM/Desktop/CV_debit.xaml.cs
@@ -0,0 +1,19 @@
+namespace IHM.Desktop;
+
+public partial class CV_debit : ContentView
+{
+ public CV_debit()
+ {
+ InitializeComponent();
+ }
+
+ private void Button_Clicked(object sender, EventArgs e)
+ {
+
+ }
+
+ private void Button_Clicked_1(object sender, EventArgs e)
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/Sources/IHM/Desktop/CV_modificationSolde.xaml b/Sources/IHM/Desktop/CV_modificationSolde.xaml
new file mode 100644
index 0000000..96ff8a1
--- /dev/null
+++ b/Sources/IHM/Desktop/CV_modificationSolde.xaml
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Sources/IHM/Desktop/CV_modificationSolde.xaml.cs b/Sources/IHM/Desktop/CV_modificationSolde.xaml.cs
new file mode 100644
index 0000000..3ae5e6f
--- /dev/null
+++ b/Sources/IHM/Desktop/CV_modificationSolde.xaml.cs
@@ -0,0 +1,19 @@
+namespace IHM.Desktop;
+
+public partial class CV_modificationSolde : ContentView
+{
+ public CV_modificationSolde()
+ {
+ InitializeComponent();
+ }
+
+ private void Button_Clicked(object sender, EventArgs e)
+ {
+
+ }
+
+ private void Button_Clicked_1(object sender, EventArgs e)
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/Sources/IHM/Desktop/CV_retirer.cs b/Sources/IHM/Desktop/CV_retirer.cs
new file mode 100644
index 0000000..2c879bf
--- /dev/null
+++ b/Sources/IHM/Desktop/CV_retirer.cs
@@ -0,0 +1,15 @@
+namespace IHM.Desktop;
+
+public class CV_retirer : ContentView
+{
+ public CV_retirer()
+ {
+ Content = new VerticalStackLayout
+ {
+ Children = {
+ new Label { HorizontalOptions = LayoutOptions.Center, VerticalOptions = LayoutOptions.Center, Text = "Welcome to .NET MAUI!"
+ }
+ }
+ };
+ }
+}
\ No newline at end of file
diff --git a/Sources/IHM/Desktop/CV_retirer.xaml b/Sources/IHM/Desktop/CV_retirer.xaml
new file mode 100644
index 0000000..8192140
--- /dev/null
+++ b/Sources/IHM/Desktop/CV_retirer.xaml
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Sources/IHM/Desktop/CV_retirer.xaml.cs b/Sources/IHM/Desktop/CV_retirer.xaml.cs
new file mode 100644
index 0000000..0654522
--- /dev/null
+++ b/Sources/IHM/Desktop/CV_retirer.xaml.cs
@@ -0,0 +1,19 @@
+namespace IHM.Desktop;
+
+public partial class CV_retirer : ContentView
+{
+ public CV_retirer()
+ {
+ InitializeComponent();
+ }
+
+ private void Button_Clicked(object sender, EventArgs e)
+ {
+
+ }
+
+ private void Button_Clicked_1(object sender, EventArgs e)
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/Sources/IHM/Desktop/CV_supprimerOp.xaml b/Sources/IHM/Desktop/CV_supprimerOp.xaml
new file mode 100644
index 0000000..2b218cd
--- /dev/null
+++ b/Sources/IHM/Desktop/CV_supprimerOp.xaml
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Sources/IHM/Desktop/CV_supprimerOp.xaml.cs b/Sources/IHM/Desktop/CV_supprimerOp.xaml.cs
new file mode 100644
index 0000000..c04a981
--- /dev/null
+++ b/Sources/IHM/Desktop/CV_supprimerOp.xaml.cs
@@ -0,0 +1,19 @@
+namespace IHM.Desktop;
+
+public partial class CV_supprimerOp : ContentView
+{
+ public CV_supprimerOp()
+ {
+ InitializeComponent();
+ }
+
+ private void Button_Clicked(object sender, EventArgs e)
+ {
+
+ }
+
+ private void Button_Clicked_1(object sender, EventArgs e)
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/Sources/IHM/Desktop/Compte.xaml b/Sources/IHM/Desktop/Compte.xaml
index ef7f299..67f8778 100644
--- a/Sources/IHM/Desktop/Compte.xaml
+++ b/Sources/IHM/Desktop/Compte.xaml
@@ -1,32 +1,86 @@
+ x:Class="IHM.Desktop.Compte">
-
-
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+ Clicked="AddCredit_Clicked"
+ Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="1"
+ x:Name="AddCredit"
+ Text="Modifier le solde"
+ Style="{StaticResource WindowsButton}"/>
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Sources/IHM/Desktop/Compte.xaml.cs b/Sources/IHM/Desktop/Compte.xaml.cs
index d9bf12d..21ddac7 100644
--- a/Sources/IHM/Desktop/Compte.xaml.cs
+++ b/Sources/IHM/Desktop/Compte.xaml.cs
@@ -1,10 +1,24 @@
+using Model;
+
namespace IHM.Desktop;
public partial class Compte : ContentView
{
- public Compte()
+
+ public Compte()
{
InitializeComponent();
+
+ Model.Compte compte = new Model.Compte("compte courant", 2000);
+
+ BindingContext = compte;
+
+
}
+ private void AddCredit_Clicked(object sender, EventArgs e)
+ {
+ windowAjout.Content = new CV_modificationSolde();
+
+ }
}
\ No newline at end of file
diff --git a/Sources/IHM/Desktop/DashBoard.xaml b/Sources/IHM/Desktop/DashBoard.xaml
index d4149e9..6e47998 100644
--- a/Sources/IHM/Desktop/DashBoard.xaml
+++ b/Sources/IHM/Desktop/DashBoard.xaml
@@ -28,15 +28,14 @@
-
+
-
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/Sources/IHM/Desktop/Dashboard.xaml.cs b/Sources/IHM/Desktop/Dashboard.xaml.cs
index edcacd6..80a436f 100644
--- a/Sources/IHM/Desktop/Dashboard.xaml.cs
+++ b/Sources/IHM/Desktop/Dashboard.xaml.cs
@@ -8,23 +8,24 @@ public partial class Dashboard
public Dashboard()
{
InitializeComponent();
+
}
private void RetourFormeBase()
{
- ButPla.BackgroundColor = Colors.Yellow; ButPla.TextColor = Colors.Black;
- ButEch.BackgroundColor = Colors.Yellow; ButEch.TextColor = Colors.Black;
- ButOpe.BackgroundColor = Colors.Yellow; ButOpe.TextColor = Colors.Black;
- ButCom.BackgroundColor = Colors.Yellow; ButCom.TextColor = Colors.Black;
- ButAcc.BackgroundColor = Colors.Yellow; ButAcc.TextColor = Colors.Black;
- ButSta.BackgroundColor = Colors.Yellow; ButSta.TextColor = Colors.Black;
+ 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;
}
private void Button_planification(object sender, EventArgs e)
{
RetourFormeBase();
ButPla.TextColor = Colors.White;
- ButPla.BackgroundColor = Colors.Red;
+ ButPla.BackgroundColor = Color.FromArgb("DF775C");
mainCV.Content= new CV_Planification();
}
@@ -32,7 +33,7 @@ public partial class Dashboard
{
RetourFormeBase();
ButEch.TextColor = Colors.White;
- ButEch.BackgroundColor = Colors.Red;
+ ButEch.BackgroundColor = Color.FromArgb("DF775C");
mainCV.Content = new Echeancier();
}
@@ -40,7 +41,7 @@ public partial class Dashboard
{
RetourFormeBase();
ButOpe.TextColor = Colors.White;
- ButOpe.BackgroundColor = Colors.Red;
+ ButOpe.BackgroundColor = Color.FromArgb("DF775C");
mainCV.Content = new Operations();
}
@@ -48,12 +49,32 @@ public partial class Dashboard
{
RetourFormeBase();
ButCom.TextColor = Colors.White;
- ButCom.BackgroundColor = Colors.Red;
+ ButCom.BackgroundColor = Color.FromArgb("DF775C");
mainCV.Content = new Compte();
}
- private void Button_Clicked(object sender, EventArgs e)
+ private void Button_statistiques(object sender, EventArgs e)
{
+ RetourFormeBase();
+ ButSta.TextColor = Colors.White;
+ ButSta.BackgroundColor = Color.FromArgb("DF775C");
+ mainCV.Content = new CV_Statistiques();
+ }
- }
+ private void ButAcc_Clicked(object sender, EventArgs e)
+ {
+ RetourFormeBase();
+ ButAcc.TextColor = Colors.White;
+ ButAcc.BackgroundColor = Color.FromArgb("DF775C");
+ mainCV.Content = new CV_HomePage();
+ }
+
+ private void ButLog_Clicked(object sender, EventArgs e)
+ {
+ RetourFormeBase();
+ ButLog.TextColor = Colors.White;
+ ButLog.BackgroundColor = Color.FromArgb("DF775C");
+ mainCV.Content = new CV_Log();
+
+ }
}
\ No newline at end of file
diff --git a/Sources/IHM/Desktop/Echeancier.xaml b/Sources/IHM/Desktop/Echeancier.xaml
index d942914..8e01e4f 100644
--- a/Sources/IHM/Desktop/Echeancier.xaml
+++ b/Sources/IHM/Desktop/Echeancier.xaml
@@ -2,44 +2,152 @@
-
-
+ >
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
\ No newline at end of file
diff --git a/Sources/IHM/Desktop/Echeancier.xaml.cs b/Sources/IHM/Desktop/Echeancier.xaml.cs
index 98d43c4..faa423b 100644
--- a/Sources/IHM/Desktop/Echeancier.xaml.cs
+++ b/Sources/IHM/Desktop/Echeancier.xaml.cs
@@ -1,9 +1,40 @@
+using Model;
+
namespace IHM.Desktop;
public partial class Echeancier : ContentView
{
+ List echeancier;
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));
+
+ BindingContext = echeancier;
+
+ }
+
+ private void SaveEcheance_Clicked(object sender, EventArgs e)
+ {
+ windowAjout.Content = new CV_EnregistrerEcheance();
+ }
+
+ private void DelEcheance_Clicked(object sender, EventArgs e)
+ {
+ windowAjout.Content = new CV_SupprimerEcheance();
}
}
\ No newline at end of file
diff --git a/Sources/IHM/Desktop/MainPage.xaml.cs b/Sources/IHM/Desktop/MainPage.xaml.cs
index 24ba442..5b94c97 100644
--- a/Sources/IHM/Desktop/MainPage.xaml.cs
+++ b/Sources/IHM/Desktop/MainPage.xaml.cs
@@ -41,7 +41,8 @@ public partial class MainPage : ContentPage
private async void ConnexionValide()
{
- await Navigation.PopModalAsync();
+ Navigation.PushAsync(new Dashboard());
+ //await Navigation.PopModalAsync();
}
private async void AffichError(string s, string s1, string s2)
diff --git a/Sources/IHM/Desktop/Operations.xaml b/Sources/IHM/Desktop/Operations.xaml
index cfce0a0..a018407 100644
--- a/Sources/IHM/Desktop/Operations.xaml
+++ b/Sources/IHM/Desktop/Operations.xaml
@@ -1,37 +1,124 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Text="OPERATIONS"
+ HorizontalOptions="Center"/>
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Sources/IHM/Desktop/Operations.xaml.cs b/Sources/IHM/Desktop/Operations.xaml.cs
index 892a7b7..d63b6e4 100644
--- a/Sources/IHM/Desktop/Operations.xaml.cs
+++ b/Sources/IHM/Desktop/Operations.xaml.cs
@@ -1,9 +1,63 @@
+using Model;
+
namespace IHM.Desktop;
public partial class Operations : ContentView
{
- public Operations()
+
+
+ List operations;
+ 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;
}
+
+ private void AddCredit_Clicked(object sender, EventArgs e)
+ {
+ windowAjout.Content = new CV_credit();
+
+ }
+
+ private void RetireOperation_Clicked(object sender, EventArgs e)
+ {
+ windowAjout.Content = new CV_retirer();
+ }
+
+ private void AddDebit_Clicked(object sender, EventArgs e)
+ {
+ windowAjout.Content = new CV_debit();
+ }
+
+ private void DelOperation_Clicked(object sender, EventArgs e)
+ {
+ windowAjout.Content = new CV_supprimerOp();
+
+ }
}
\ No newline at end of file
diff --git a/Sources/IHM/Desktop/Planification.xaml b/Sources/IHM/Desktop/Planification.xaml
index 8d80a48..9abe812 100644
--- a/Sources/IHM/Desktop/Planification.xaml
+++ b/Sources/IHM/Desktop/Planification.xaml
@@ -29,7 +29,6 @@
-
diff --git a/Sources/IHM/IHM.csproj b/Sources/IHM/IHM.csproj
index 1b1eaf1..fb7db2e 100644
--- a/Sources/IHM/IHM.csproj
+++ b/Sources/IHM/IHM.csproj
@@ -80,6 +80,8 @@
+
+
@@ -125,9 +127,42 @@
MSBuild:Compile
+
+ MSBuild:Compile
+
+
+ MSBuild:Compile
+
+
+ MSBuild:Compile
+
+
+ MSBuild:Compile
+
+
+ MSBuild:Compile
+
+
+ MSBuild:Compile
+
+
+ MSBuild:Compile
+
MSBuild:Compile
+
+ MSBuild:Compile
+
+
+ MSBuild:Compile
+
+
+ MSBuild:Compile
+
+
+ MSBuild:Compile
+
MSBuild:Compile
diff --git a/Sources/IHM/Resources/Styles/Styles.xaml b/Sources/IHM/Resources/Styles/Styles.xaml
index 8f4a786..cbcf3cd 100644
--- a/Sources/IHM/Resources/Styles/Styles.xaml
+++ b/Sources/IHM/Resources/Styles/Styles.xaml
@@ -403,11 +403,12 @@
+
diff --git a/Sources/Modele/Banque.cs b/Sources/Modele/Banque.cs
index a4e497b..0075650 100644
--- a/Sources/Modele/Banque.cs
+++ b/Sources/Modele/Banque.cs
@@ -12,7 +12,15 @@ namespace Model
{
public event PropertyChangedEventHandler PropertyChanged;
public string Nom { get; private set; }
+
+ ///
+ /// UrlSite sert à identifier l'URL du site de la banque.
+ ///
public string UrlSite { get; private set; }
+
+ ///
+ /// UrlLogo sert à obtenir le logo de la banque.
+ ///
public string UrlLogo { get; private set; }
public List ListeDesComptes
{
@@ -47,11 +55,20 @@ namespace Model
ListeDesComptes.Add(compte);
}
+ ///
+ /// Permet de supprimer un compte à ListeDesComptes
+ ///
+ /// Représente le compte qui doit être supprimer de ListeDesComptes.
public void SupprimerCompte(Compte compte)
{
ListeDesComptes.Remove(compte);
}
+ ///
+ /// Permet de vérifier si un compte dont le nom est passé en paramètre existe bien dans ListeDesComptes.
+ ///
+ /// Nom du compte dont on souhaite savoir si il est présent dans ListeDesComptes.
+ /// Boolean égale à True si le compte existe dans la liste.
public bool ExisteCompte(string s)
{
foreach (Compte compte in ListeDesComptes)
@@ -61,6 +78,13 @@ namespace Model
}
return false;
}
+
+ ///
+ /// Permet d'obtenir le compte dont le nom est passé en paramètre dans la ListeDesComptes.
+ ///
+ /// Nom du compte que l'on souhaite retourner.
+ /// L'objet de type compte que l'on souhaite retourner.
+
public Compte ReturnCompte(string s)
{
foreach (Compte compte in ListeDesComptes)
diff --git a/Sources/Modele/Compte.cs b/Sources/Modele/Compte.cs
index 67654a6..d45d38f 100644
--- a/Sources/Modele/Compte.cs
+++ b/Sources/Modele/Compte.cs
@@ -66,6 +66,15 @@ namespace Model
LesEch = lesEch;
}
+ ///
+ /// Permet de modifier le solde présent sur le compte.
+ ///
+ /// Nouvelle quantité d'argent présent sur le compte.
+ public void modifierSolde(double s)
+ {
+ Solde = s;
+ }
+
void OnPropertyChanged(string propertyName) => PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
@@ -80,36 +89,61 @@ namespace Model
throw new NotImplementedException();
}
+ ///
+ /// Permet de supprimer une operation de la liste LesOpe
+ ///
+ /// Objet de type operation devant être supprimé de la liste
public void supprimerOperation(Operation o)
{
LesOpe.Remove(o);
}
+ ///
+ /// Sert à ajouter une echenance à la liste LesEch
+ ///
+ /// Objet de type échéance à ajouter à la liste
+ /// Déclenchée quand l'opération placé en paramètre est nulle.
public void ajoutEcheance(Echeance e)
{
if (e == null) throw new NullReferenceException();
LesEch.Add(e);
}
+ ///
+ /// Permet de supprimer une echeance de la liste LesEch
+ ///
+ /// Objet de type echeance devant être supprimé de la liste
public void supprimerEcheance(Echeance e)
{
LesEch.Remove(e);
}
- public void ajoutPlannification(Planification p)
+ ///
+ /// Sert à ajouter une planification à la liste LesPla
+ ///
+ /// Objet de type planification à ajouter à la liste
+ /// Déclenchée quand l'opération placé en paramètre est nulle.
+ public void ajoutPlanification(Planification p)
{
if (p == null) throw new NullReferenceException();
LesPla.Add(p);
}
- public void supprimerPlannification(Planification p)
+ ///
+ /// Permet de supprimer une planification de la liste LesPla
+ ///
+ /// Objet de type planification devant être supprimé de la liste
+ public void supprimerPlanification(Planification p)
{
LesPla.Remove(p);
}
+ ///
+ /// Permet de rédéfinir la méthode Equals en comparant le type des 2 objets.
+ ///
+ /// L'objet dont on souhaite savoir s'il est de type compte
public override bool Equals(object obj)
{
-
if (obj == null || GetType() != obj.GetType())
{
return false;
diff --git a/Sources/Modele/Devises.cs b/Sources/Modele/Devises.cs
index aff53dd..68333de 100644
--- a/Sources/Modele/Devises.cs
+++ b/Sources/Modele/Devises.cs
@@ -6,6 +6,9 @@ using System.Threading.Tasks;
namespace Model
{
+ ///
+ /// Représente toute les monnaies pouvant être utilisé pour l'application.
+ ///
public enum Devises
{
Livre_sterling,
diff --git a/Sources/Modele/Echeance.cs b/Sources/Modele/Echeance.cs
index 060c5da..6e9ffc8 100644
--- a/Sources/Modele/Echeance.cs
+++ b/Sources/Modele/Echeance.cs
@@ -4,6 +4,7 @@ using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
+using System.Text.Json.Serialization;
using System.Threading.Tasks;
namespace Model
diff --git a/Sources/Modele/Hash.cs b/Sources/Modele/Hash.cs
index 1ec1c95..27abbe3 100644
--- a/Sources/Modele/Hash.cs
+++ b/Sources/Modele/Hash.cs
@@ -10,7 +10,6 @@ namespace Model
public static class Hash
{
public static string CreateHashCode(string mdp)
-
{
string hashString = "";
byte[] hash;
diff --git a/Sources/Modele/Inscrit.cs b/Sources/Modele/Inscrit.cs
index 9b07cc5..90ede19 100644
--- a/Sources/Modele/Inscrit.cs
+++ b/Sources/Modele/Inscrit.cs
@@ -18,6 +18,9 @@ namespace Model
public string Nom { get; set; }
public string Prenom { get; set; }
+ ///
+ /// Représente l'adresse mail de l'inscrit.
+ ///
public string Mail
{
get => mail;
@@ -36,8 +39,9 @@ namespace Model
}
private string mail;
-
-
+ ///
+ /// Représente le mot de passe de l'inscrit pour se connecter à son compte.
+ ///
public string Mdp
{
get => mdp;
@@ -63,6 +67,10 @@ namespace Model
void OnPropertyChanged(string propertyName) => PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
public double SoldeTotal { get; private set; }
+
+ ///
+ /// Type de monnaie pour laquel est le solde total.
+ ///
public Devises Dev { get; private set; }
public IList LesBanques
{
@@ -106,12 +114,20 @@ namespace Model
LesBanques.Add(banque);
}
+ ///
+ /// Permet de supprimer une banque de la liste LesBanques
+ ///
+ /// Objet de type banque correspondant à la banque qui doit être supprimé de la liste.
public void SupprimerBanque(Banque banque)
{
LesBanques.Remove(banque);
}
+ ///
+ /// Permet de changer la devise utilisé pour le solde total
+ ///
+ /// Correspond à la devise devant être utilisé.
public void ChoisirDevise(Devises devise)
{
Dev = devise;
diff --git a/Sources/Modele/InvalidMailException.cs b/Sources/Modele/InvalidMailException.cs
index 60a71ae..2481ba1 100644
--- a/Sources/Modele/InvalidMailException.cs
+++ b/Sources/Modele/InvalidMailException.cs
@@ -6,12 +6,23 @@ using System.Threading.Tasks;
namespace Model
{
+ ///
+ /// Exception déclenché lorsque un mail invalide est rentré.
+ ///
public class InvalidMailException : ArgumentException
{
+ ///
+ /// Représente le mail invalide.
+ ///
private string Mail { get; set; }
+
public InvalidMailException():base()
{ }
+ ///
+ /// Stocke le mail invalide dans la variable Mail et rentre le message d'erreur.
+ ///
+ /// Le mail qui est invalide
public InvalidMailException(string mail):
base(String.Format("{0} n'est pas un mail valide.", mail))
{
diff --git a/Sources/Modele/InvalidPasswordException.cs b/Sources/Modele/InvalidPasswordException.cs
index 46e022f..ab34af9 100644
--- a/Sources/Modele/InvalidPasswordException.cs
+++ b/Sources/Modele/InvalidPasswordException.cs
@@ -6,12 +6,24 @@ using System.Threading.Tasks;
namespace Model
{
+ ///
+ /// Excepion déclenchée lorsque un mot de passe est invalide.
+ ///
public class InvalidPasswordException : ArgumentException
{
+ ///
+ /// Représente le mot de passe invalide.
+ ///
private string Mdp { get; set; }
public InvalidPasswordException() : base()
{ }
+
+ ///
+ /// Stocke le mot de passe invalide dans la variable Mdp et rentre le message d'erreur.
+ ///
+ /// Le mot de passe qui est invalide
+ ///
public InvalidPasswordException(string mdp) :
base(String.Format("{0} n'est pas un mot de passe valide.", mdp))
{
diff --git a/Sources/Modele/Manager.cs b/Sources/Modele/Manager.cs
index 152302f..3fd7fcd 100644
--- a/Sources/Modele/Manager.cs
+++ b/Sources/Modele/Manager.cs
@@ -4,9 +4,13 @@ using System.Diagnostics;
namespace Model
{
+ ///
+ /// Permet de faire le lien entre le modèle et la base de donnée..
+ ///
public class Manager : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
+
public IPersistanceManager Pers { get; private set; }
private Inscrit user;
diff --git a/Sources/Modele/MethodePayement.cs b/Sources/Modele/MethodePayement.cs
index 4aa0053..377f39a 100644
--- a/Sources/Modele/MethodePayement.cs
+++ b/Sources/Modele/MethodePayement.cs
@@ -9,10 +9,10 @@ namespace Model
public enum MethodePayement
{
None,
- Cb,
- Esp,
- Chq,
- Vir,
- Pre
+ CB,
+ Espece,
+ Cheque,
+ Virement,
+ Prevelement
}
-}
\ No newline at end of file
+}
diff --git a/Sources/Modele/Operation.cs b/Sources/Modele/Operation.cs
index 38dcab4..8bbd788 100644
--- a/Sources/Modele/Operation.cs
+++ b/Sources/Modele/Operation.cs
@@ -4,6 +4,7 @@ using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
+using System.Text.Json.Serialization;
using System.Threading.Tasks;
namespace Model
diff --git a/Sources/Modele/Planification.cs b/Sources/Modele/Planification.cs
index d4749df..c1309a3 100644
--- a/Sources/Modele/Planification.cs
+++ b/Sources/Modele/Planification.cs
@@ -5,6 +5,7 @@ using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
+using System.Text.Json.Serialization;
using System.Threading.Tasks;
namespace Model