diff --git a/Code/IHM/MainWindow.xaml b/Code/IHM/MainWindow.xaml
index d37e382..3eb358b 100644
--- a/Code/IHM/MainWindow.xaml
+++ b/Code/IHM/MainWindow.xaml
@@ -24,7 +24,7 @@
-
+
diff --git a/Code/IHM/MainWindow.xaml.cs b/Code/IHM/MainWindow.xaml.cs
index a5401fc..a6edc37 100644
--- a/Code/IHM/MainWindow.xaml.cs
+++ b/Code/IHM/MainWindow.xaml.cs
@@ -109,7 +109,7 @@ namespace IHM
}
- private void Button_Click_Plannification(object sender, RoutedEventArgs e)
+ private void Button_Click_Planification(object sender, RoutedEventArgs e)
{
Button btn = (Button)sender;
if (btn == null) return;
diff --git a/Code/IHM/Navigator.cs b/Code/IHM/Navigator.cs
index dd19570..0daa481 100644
--- a/Code/IHM/Navigator.cs
+++ b/Code/IHM/Navigator.cs
@@ -35,6 +35,11 @@ namespace IHM
public const string PART_AJOUTER_PLANIFICATION = "Ajouter une planification";
public const string PART_SUPPRIMER_PLANIFICATION = "Supprimer une planification";
+ public const string PART_EFFECTUER_CREDIT = "Effectuer un crédit";
+ public const string PART_EFFECTUER_DEBIT = "Effectuer un débit";
+ public const string PART_RETIRER_OPERATION = "Retirer une opération";
+ public const string PART_SUPPRIMER_OPERATION = "Supprimer une opération";
+
public ReadOnlyDictionary> WindowPart { get; private set; }
Dictionary> windowPart { get; set; } = new Dictionary>
@@ -44,7 +49,7 @@ namespace IHM
[PART_COMPTE] = () => new UCCompte(),
[PART_OPERATION] = () => new UCOperation(),
[PART_ECHEANCIER] = () => new UCEcheancier(),
- [PART_PLANIFICATION] = () => new UCPlannification(),
+ [PART_PLANIFICATION] = () => new UCPlanification(),
[PART_INSCRIPTION] = () => new UCInscription(),
[PART_MODIFSOLDE] = () => new UCModifSolde(),
[PART_AJOUTER_BANQUE] = () => new UCAjouterBanque(),
@@ -56,6 +61,10 @@ namespace IHM
[PART_AJOUTER_PLANIFICATION] = () => new UCAjouterPlanification(),
[PART_SUPPRIMER_PLANIFICATION] = () => new UCSupprimerPlanification(),
[PART_TABLEAU_DE_BORD] = () => new UCTableauDeBord(),
+ [PART_EFFECTUER_CREDIT] = () => new UCEffectuerCredit(),
+ [PART_EFFECTUER_DEBIT] = () => new UCEffectuerCredit(),
+ [PART_RETIRER_OPERATION] = () => new UCEffectuerCredit(),
+ [PART_SUPPRIMER_OPERATION] = () => new UCEffectuerCredit()
};
diff --git a/Code/IHM/UCEffectuerCredit.xaml b/Code/IHM/UCEffectuerCredit.xaml
new file mode 100644
index 0000000..d920541
--- /dev/null
+++ b/Code/IHM/UCEffectuerCredit.xaml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
diff --git a/Code/IHM/UCEffectuerCredit.xaml.cs b/Code/IHM/UCEffectuerCredit.xaml.cs
new file mode 100644
index 0000000..537cf8b
--- /dev/null
+++ b/Code/IHM/UCEffectuerCredit.xaml.cs
@@ -0,0 +1,34 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+
+namespace IHM
+{
+ ///
+ /// Logique d'interaction pour UserControl1.xaml
+ ///
+ public partial class UCEffectuerCredit : UserControl
+ {
+ public Navigator Nav => (App.Current as App).Navigator;
+
+ public UCEffectuerCredit()
+ {
+ InitializeComponent();
+ }
+ private void Button_Click_Retour(object sender, RoutedEventArgs e)
+ {
+ Nav.NavigateTo(Navigator.PART_OPERATION);
+ }
+ }
+}
diff --git a/Code/IHM/UCEffectuerDebit.xaml b/Code/IHM/UCEffectuerDebit.xaml
new file mode 100644
index 0000000..eb98616
--- /dev/null
+++ b/Code/IHM/UCEffectuerDebit.xaml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
diff --git a/Code/IHM/UCEffectuerDebit.xaml.cs b/Code/IHM/UCEffectuerDebit.xaml.cs
new file mode 100644
index 0000000..80e7d5a
--- /dev/null
+++ b/Code/IHM/UCEffectuerDebit.xaml.cs
@@ -0,0 +1,34 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+
+namespace IHM
+{
+ ///
+ /// Logique d'interaction pour UserControl1.xaml
+ ///
+ public partial class UCEffectuerDebit : UserControl
+ {
+ public Navigator Nav => (App.Current as App).Navigator;
+
+ public UCEffectuerDebit()
+ {
+ InitializeComponent();
+ }
+ private void Button_Click_Retour(object sender, RoutedEventArgs e)
+ {
+ Nav.NavigateTo(Navigator.PART_OPERATION);
+ }
+ }
+}
diff --git a/Code/IHM/UCOperation.xaml b/Code/IHM/UCOperation.xaml
index c156f71..46f6016 100644
--- a/Code/IHM/UCOperation.xaml
+++ b/Code/IHM/UCOperation.xaml
@@ -22,10 +22,10 @@
-
-
-
-
+
+
+
+
diff --git a/Code/IHM/UCOperation.xaml.cs b/Code/IHM/UCOperation.xaml.cs
index a8845ae..c712b51 100644
--- a/Code/IHM/UCOperation.xaml.cs
+++ b/Code/IHM/UCOperation.xaml.cs
@@ -20,9 +20,27 @@ namespace IHM
///
public partial class UCOperation : UserControl
{
+ public Navigator Nav => (App.Current as App).Navigator;
+
public UCOperation()
{
InitializeComponent();
}
+ private void Button_Click_EffectuerCredit(object sender, RoutedEventArgs e)
+ {
+ Nav.NavigateTo(Navigator.PART_EFFECTUER_CREDIT);
+ }
+ private void Button_Click_EffectuerDebit(object sender, RoutedEventArgs e)
+ {
+ Nav.NavigateTo(Navigator.PART_EFFECTUER_DEBIT);
+ }
+ private void Button_Click_RetirerOperation(object sender, RoutedEventArgs e)
+ {
+ Nav.NavigateTo(Navigator.PART_RETIRER_OPERATION);
+ }
+ private void Button_Click_SupprimerOperation(object sender, RoutedEventArgs e)
+ {
+ Nav.NavigateTo(Navigator.PART_SUPPRIMER_OPERATION);
+ }
}
}
diff --git a/Code/IHM/UCPlannification.xaml b/Code/IHM/UCPlanification.xaml
similarity index 90%
rename from Code/IHM/UCPlannification.xaml
rename to Code/IHM/UCPlanification.xaml
index 0d6084d..4579724 100644
--- a/Code/IHM/UCPlannification.xaml
+++ b/Code/IHM/UCPlanification.xaml
@@ -1,4 +1,4 @@
-
-
-
+
+
diff --git a/Code/IHM/UCPlannification.xaml.cs b/Code/IHM/UCPlanification.xaml.cs
similarity index 91%
rename from Code/IHM/UCPlannification.xaml.cs
rename to Code/IHM/UCPlanification.xaml.cs
index 1251f8b..bd08468 100644
--- a/Code/IHM/UCPlannification.xaml.cs
+++ b/Code/IHM/UCPlanification.xaml.cs
@@ -18,11 +18,11 @@ namespace IHM
///
/// Logique d'interaction pour UCPlannification.xaml
///
- public partial class UCPlannification : UserControl
+ public partial class UCPlanification : UserControl
{
public Navigator Nav => (App.Current as App).Navigator;
- public UCPlannification()
+ public UCPlanification()
{
InitializeComponent();
}
diff --git a/Code/IHM/UCRetirerOperation.xaml b/Code/IHM/UCRetirerOperation.xaml
new file mode 100644
index 0000000..d38f7a0
--- /dev/null
+++ b/Code/IHM/UCRetirerOperation.xaml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Code/IHM/UCRetirerOperation.xaml.cs b/Code/IHM/UCRetirerOperation.xaml.cs
new file mode 100644
index 0000000..13319a6
--- /dev/null
+++ b/Code/IHM/UCRetirerOperation.xaml.cs
@@ -0,0 +1,34 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+
+namespace IHM
+{
+ ///
+ /// Logique d'interaction pour UserControl2.xaml
+ ///
+ public partial class UCRetirerOperation : UserControl
+ {
+ public Navigator Nav => (App.Current as App).Navigator;
+
+ public UCRetirerOperation()
+ {
+ InitializeComponent();
+ }
+ private void Button_Click_Retour(object sender, RoutedEventArgs e)
+ {
+ Nav.NavigateTo(Navigator.PART_OPERATION);
+ }
+ }
+}
diff --git a/Code/IHM/UCSupprimerOperation.xaml b/Code/IHM/UCSupprimerOperation.xaml
new file mode 100644
index 0000000..6ff42ec
--- /dev/null
+++ b/Code/IHM/UCSupprimerOperation.xaml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Code/IHM/UCSupprimerOperation.xaml.cs b/Code/IHM/UCSupprimerOperation.xaml.cs
new file mode 100644
index 0000000..7b8e9ce
--- /dev/null
+++ b/Code/IHM/UCSupprimerOperation.xaml.cs
@@ -0,0 +1,34 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+
+namespace IHM
+{
+ ///
+ /// Logique d'interaction pour UserControl3.xaml
+ ///
+ public partial class UCSupprimerOperation : UserControl
+ {
+ public Navigator Nav => (App.Current as App).Navigator;
+
+ public UCSupprimerOperation()
+ {
+ InitializeComponent();
+ }
+ private void Button_Click_Retour(object sender, RoutedEventArgs e)
+ {
+ Nav.NavigateTo(Navigator.PART_OPERATION);
+ }
+ }
+}