diff --git a/Code/IHM/App.xaml b/Code/IHM/App.xaml
index 373f0ad..8ff84b3 100644
--- a/Code/IHM/App.xaml
+++ b/Code/IHM/App.xaml
@@ -2,8 +2,164 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:IHM"
+ xmlns:conv="clr-namespace:IHM.Converters"
StartupUri="MainWindow.xaml">
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Code/IHM/App.xaml.cs b/Code/IHM/App.xaml.cs
index aff7815..ec2e22c 100644
--- a/Code/IHM/App.xaml.cs
+++ b/Code/IHM/App.xaml.cs
@@ -5,6 +5,8 @@ using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Media;
namespace IHM
{
@@ -13,5 +15,8 @@ namespace IHM
///
public partial class App : Application
{
+ public Navigator Navigator { get; private set; } = new Navigator();
+
+
}
}
diff --git a/Code/IHM/Converters/Func2WindowPartConverter.cs b/Code/IHM/Converters/Func2WindowPartConverter.cs
new file mode 100644
index 0000000..d825da7
--- /dev/null
+++ b/Code/IHM/Converters/Func2WindowPartConverter.cs
@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Controls;
+using System.Windows.Data;
+
+namespace IHM.Converters
+{
+ public class Func2WindowPartConverter : IValueConverter
+ {
+ public object? Convert(object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ Func? windowPartCreator = value as Func;
+ if (windowPartCreator == null)
+ {
+ return null;
+ }
+ return windowPartCreator();
+ }
+ public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ throw new NotImplementedException();
+ }
+ }
+}
diff --git a/Code/IHM/IHM.csproj b/Code/IHM/IHM.csproj
index 7dc11f9..7e1d10d 100644
--- a/Code/IHM/IHM.csproj
+++ b/Code/IHM/IHM.csproj
@@ -7,4 +7,22 @@
true
+
+
+
+
+
+
+
+
+ PreserveNewest
+
+
+ PreserveNewest
+
+
+ PreserveNewest
+
+
+
diff --git a/Code/IHM/MainWindow.xaml b/Code/IHM/MainWindow.xaml
index d796ffe..3eb358b 100644
--- a/Code/IHM/MainWindow.xaml
+++ b/Code/IHM/MainWindow.xaml
@@ -8,5 +8,31 @@
Title="MainWindow" Height="450" Width="800">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Code/IHM/MainWindow.xaml.cs b/Code/IHM/MainWindow.xaml.cs
index 9ea40a2..a6edc37 100644
--- a/Code/IHM/MainWindow.xaml.cs
+++ b/Code/IHM/MainWindow.xaml.cs
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
+using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@@ -20,9 +21,108 @@ namespace IHM
///
public partial class MainWindow : Window
{
+ public Navigator Nav => (App.Current as App).Navigator;
public MainWindow()
{
InitializeComponent();
+ DataContext = this;
}
+
+ public void ChangerStyleBtn(Button btn)
+ {
+
+ StackPanel sp = (StackPanel)btn.Parent;
+ if (sp == null) return;
+ UIElementCollection UIEC = sp.Children;
+ if (UIEC == null) return;
+ foreach (UIElement obj in UIEC)
+ {
+
+ if (obj as Button != null)
+ {
+ (obj as Button).IsDefault = false;
+ }
+
+ }
+ btn.IsDefault = true;
+ }
+
+ private void Button_Click_TableauDeBord(object sender, RoutedEventArgs e)
+ {
+
+ Button btn = (Button)sender;
+ if (btn == null) return;
+ if (btn.IsDefault == false)
+ {
+ Nav.NavigateTo(Navigator.PART_TABLEAU_DE_BORD);
+ ChangerStyleBtn(btn);
+
+
+ }
+ else return;
+
+ }
+
+ private void Button_Click_Compte(object sender, RoutedEventArgs e)
+ {
+
+ Button btn = (Button)sender;
+ if (btn == null) return;
+ if (btn.IsDefault == false)
+ {
+
+ Nav.NavigateTo(Navigator.PART_COMPTE);
+ ChangerStyleBtn(btn);
+
+ }
+ else return;
+
+ }
+
+ private void Button_Click_Operation(object sender, RoutedEventArgs e)
+ {
+ Button btn = (Button)sender;
+ if (btn == null) return;
+ if (btn.IsDefault == false)
+ {
+
+ Nav.NavigateTo(Navigator.PART_OPERATION);
+ ChangerStyleBtn(btn);
+
+ }
+ else return;
+
+ }
+
+ private void Button_Click_Echeancier(object sender, RoutedEventArgs e)
+ {
+ Button btn = (Button)sender;
+ if (btn == null) return;
+ if (btn.IsDefault == false)
+ {
+
+ Nav.NavigateTo(Navigator.PART_ECHEANCIER);
+ ChangerStyleBtn(btn);
+
+ }
+ else return;
+
+ }
+
+ private void Button_Click_Planification(object sender, RoutedEventArgs e)
+ {
+ Button btn = (Button)sender;
+ if (btn == null) return;
+ if (btn.IsDefault == false)
+ {
+
+ Nav.NavigateTo(Navigator.PART_PLANIFICATION);
+ ChangerStyleBtn(btn);
+
+ }
+ else return;
+ }
+
+
}
}
diff --git a/Code/IHM/Navigator.cs b/Code/IHM/Navigator.cs
new file mode 100644
index 0000000..0daa481
--- /dev/null
+++ b/Code/IHM/Navigator.cs
@@ -0,0 +1,103 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel;
+using System.Linq;
+using System.Runtime.CompilerServices;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Controls;
+
+namespace IHM
+{
+ public class Navigator : INotifyPropertyChanged
+ {
+ public const string PART_MAIN = "Main";
+ public const string PART_CONNEXION = "Connexion";
+ public const string PART_INSCRIPTION = "Inscription";
+
+ public const string PART_TABLEAU_DE_BORD = "Tableau de Bord";
+
+ public const string PART_COMPTE = "Compte";
+ public const string PART_AJOUTER_BANQUE = "Ajouter une banque";
+ public const string PART_SUPPRIMER_BANQUE = "Supprimer une banque";
+ public const string PART_AJOUTER_COMPTE = "Ajouter une compte";
+ public const string PART_SUPPRIMER_COMPTE = "Supprimer un compte";
+ public const string PART_MODIFSOLDE = "ModifSolde";
+
+ public const string PART_OPERATION = "Opération";
+
+ public const string PART_ECHEANCIER = "Echéancier";
+ public const string PART_AJOUTER_ECHEANCE = "Enregistrer une échéance";
+ public const string PART_SUPPRIMER_ECHEANCE = "Supprimer une échéance";
+
+ public const string PART_PLANIFICATION = "Planification";
+ 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>
+ {
+ [PART_MAIN] = () => new UCBienvenue(),
+ [PART_CONNEXION] = () => new UCConnexion(),
+ [PART_COMPTE] = () => new UCCompte(),
+ [PART_OPERATION] = () => new UCOperation(),
+ [PART_ECHEANCIER] = () => new UCEcheancier(),
+ [PART_PLANIFICATION] = () => new UCPlanification(),
+ [PART_INSCRIPTION] = () => new UCInscription(),
+ [PART_MODIFSOLDE] = () => new UCModifSolde(),
+ [PART_AJOUTER_BANQUE] = () => new UCAjouterBanque(),
+ [PART_SUPPRIMER_BANQUE] = () => new UCSupprimerBanque(),
+ [PART_AJOUTER_COMPTE] = () => new UCAjouterCompte(),
+ [PART_SUPPRIMER_COMPTE] = () => new UCSupprimerCompte(),
+ [PART_AJOUTER_ECHEANCE] = () => new UCAjouterEcheance(),
+ [PART_SUPPRIMER_ECHEANCE] = () => new UCSupprimerEcheance(),
+ [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()
+ };
+
+
+ public Navigator()
+ {
+ WindowPart = new ReadOnlyDictionary>(windowPart);
+
+ SelectedUserControlCreator = windowPart.First();
+ }
+
+ public KeyValuePair> SelectedUserControlCreator
+ {
+ get => selectedUserControlCreator;
+ set
+ {
+ if (selectedUserControlCreator.Equals(value)) return;
+ selectedUserControlCreator = value;
+ OnPropertyChanged();
+ }
+ }
+
+ private KeyValuePair> selectedUserControlCreator;
+
+ public event PropertyChangedEventHandler? PropertyChanged;
+ void OnPropertyChanged([CallerMemberName] string propertyName = "")
+ => PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
+
+ public void NavigateTo(string windowPartName)
+ {
+ if (WindowPart.ContainsKey(windowPartName))
+ {
+ SelectedUserControlCreator = WindowPart.Single(kvp => kvp.Key == windowPartName);
+ }
+ }
+ }
+}
diff --git a/Code/IHM/UCAjouterBanque.xaml b/Code/IHM/UCAjouterBanque.xaml
new file mode 100644
index 0000000..4e47493
--- /dev/null
+++ b/Code/IHM/UCAjouterBanque.xaml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
diff --git a/Code/IHM/UCAjouterBanque.xaml.cs b/Code/IHM/UCAjouterBanque.xaml.cs
new file mode 100644
index 0000000..ac52266
--- /dev/null
+++ b/Code/IHM/UCAjouterBanque.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 UCAjouterBanque.xaml
+ ///
+ public partial class UCAjouterBanque : UserControl
+ {
+ public Navigator Nav => (App.Current as App).Navigator;
+ public UCAjouterBanque()
+ {
+ InitializeComponent();
+ }
+
+ private void Button_Click_Retour(object sender, RoutedEventArgs e)
+ {
+ Nav.NavigateTo(Navigator.PART_COMPTE);
+ }
+ }
+}
diff --git a/Code/IHM/UCAjouterCompte.xaml b/Code/IHM/UCAjouterCompte.xaml
new file mode 100644
index 0000000..4460ea8
--- /dev/null
+++ b/Code/IHM/UCAjouterCompte.xaml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
diff --git a/Code/IHM/UCAjouterCompte.xaml.cs b/Code/IHM/UCAjouterCompte.xaml.cs
new file mode 100644
index 0000000..e8ed547
--- /dev/null
+++ b/Code/IHM/UCAjouterCompte.xaml.cs
@@ -0,0 +1,35 @@
+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 UCAjouterCompte.xaml
+ ///
+ public partial class UCAjouterCompte : UserControl
+ {
+ public Navigator Nav => (App.Current as App).Navigator;
+
+ public UCAjouterCompte()
+ {
+ InitializeComponent();
+ }
+
+ private void Button_Click_Retour(object sender, RoutedEventArgs e)
+ {
+ Nav.NavigateTo(Navigator.PART_COMPTE);
+ }
+ }
+}
diff --git a/Code/IHM/UCAjouterEcheance.xaml b/Code/IHM/UCAjouterEcheance.xaml
new file mode 100644
index 0000000..5a61dc1
--- /dev/null
+++ b/Code/IHM/UCAjouterEcheance.xaml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
diff --git a/Code/IHM/UCAjouterEcheance.xaml.cs b/Code/IHM/UCAjouterEcheance.xaml.cs
new file mode 100644
index 0000000..449d1a6
--- /dev/null
+++ b/Code/IHM/UCAjouterEcheance.xaml.cs
@@ -0,0 +1,35 @@
+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 UCAjouterEcheance.xaml
+ ///
+ public partial class UCAjouterEcheance : UserControl
+ {
+ public Navigator Nav => (App.Current as App).Navigator;
+
+ public UCAjouterEcheance()
+ {
+ InitializeComponent();
+ }
+
+ private void Button_Click_Retour(object sender, RoutedEventArgs e)
+ {
+ Nav.NavigateTo(Navigator.PART_ECHEANCIER);
+ }
+ }
+}
diff --git a/Code/IHM/UCAjouterPlanification.xaml b/Code/IHM/UCAjouterPlanification.xaml
new file mode 100644
index 0000000..a29b4b9
--- /dev/null
+++ b/Code/IHM/UCAjouterPlanification.xaml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
diff --git a/Code/IHM/UCAjouterPlanification.xaml.cs b/Code/IHM/UCAjouterPlanification.xaml.cs
new file mode 100644
index 0000000..8aada78
--- /dev/null
+++ b/Code/IHM/UCAjouterPlanification.xaml.cs
@@ -0,0 +1,35 @@
+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 UCAjouterPlanification.xaml
+ ///
+ public partial class UCAjouterPlanification : UserControl
+ {
+ public Navigator Nav => (App.Current as App).Navigator;
+
+ public UCAjouterPlanification()
+ {
+ InitializeComponent();
+ }
+
+ private void Button_Click_Retour(object sender, RoutedEventArgs e)
+ {
+ Nav.NavigateTo(Navigator.PART_PLANIFICATION);
+ }
+ }
+}
diff --git a/Code/IHM/UCBienvenue.xaml b/Code/IHM/UCBienvenue.xaml
new file mode 100644
index 0000000..9fa2dad
--- /dev/null
+++ b/Code/IHM/UCBienvenue.xaml
@@ -0,0 +1,41 @@
+
+
+ Bienvenue sur Cons'Eco
+
+
+
+ La première application d'aide à la gestion de budget personnel ou en entreprise
+
+
+
+
+
+
+
+
+
+ Vous pouvez créer un compte
+
+
+
+
+
+ Ou vous connecter si vous en possédée déjà un
+
+
+
+
+
+
diff --git a/Code/IHM/UCBienvenue.xaml.cs b/Code/IHM/UCBienvenue.xaml.cs
new file mode 100644
index 0000000..939e30a
--- /dev/null
+++ b/Code/IHM/UCBienvenue.xaml.cs
@@ -0,0 +1,40 @@
+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 UCBienvenue.xaml
+ ///
+ public partial class UCBienvenue : UserControl
+ {
+ public Navigator Nav => (App.Current as App).Navigator;
+ public UCBienvenue()
+ {
+ InitializeComponent();
+ DataContext = this;
+ }
+
+ private void Button_Click_Inscription(object sender, RoutedEventArgs e)
+ {
+ Nav.NavigateTo(Navigator.PART_INSCRIPTION);
+ }
+
+ private void Button_Click_Connexion(object sender, RoutedEventArgs e)
+ {
+ Nav.NavigateTo(Navigator.PART_CONNEXION);
+ }
+ }
+}
diff --git a/Code/IHM/UCCompte.xaml b/Code/IHM/UCCompte.xaml
new file mode 100644
index 0000000..d670437
--- /dev/null
+++ b/Code/IHM/UCCompte.xaml
@@ -0,0 +1,42 @@
+
+
+
+
+
+ Compte
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Code/IHM/UCCompte.xaml.cs b/Code/IHM/UCCompte.xaml.cs
new file mode 100644
index 0000000..7364dfb
--- /dev/null
+++ b/Code/IHM/UCCompte.xaml.cs
@@ -0,0 +1,52 @@
+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
+{
+
+ public partial class UCCompte : UserControl
+ {
+ public Navigator Nav => (App.Current as App).Navigator;
+ public UCCompte()
+ {
+ InitializeComponent();
+ }
+ private void Button_Click_ModifSolde(object sender, RoutedEventArgs e)
+ {
+ Nav.NavigateTo(Navigator.PART_MODIFSOLDE);
+ }
+
+ private void Button_Click_Ajouter_Banque(object sender, RoutedEventArgs e)
+ {
+ Nav.NavigateTo(Navigator.PART_AJOUTER_BANQUE);
+ }
+
+ private void Button_Click_Supprimer_Banque(object sender, RoutedEventArgs e)
+ {
+ Nav.NavigateTo(Navigator.PART_SUPPRIMER_BANQUE);
+ }
+
+ private void Button_Click_Ajouter_Compte(object sender, RoutedEventArgs e)
+ {
+ Nav.NavigateTo(Navigator.PART_AJOUTER_COMPTE);
+ }
+
+ private void Button_Click_Supprimer_Compte(object sender, RoutedEventArgs e)
+ {
+ Nav.NavigateTo(Navigator.PART_SUPPRIMER_COMPTE);
+ }
+ }
+
+}
diff --git a/Code/IHM/UCConnexion.xaml b/Code/IHM/UCConnexion.xaml
new file mode 100644
index 0000000..fec8188
--- /dev/null
+++ b/Code/IHM/UCConnexion.xaml
@@ -0,0 +1,71 @@
+
+
+
+ Connexion
+ Connectez vous à un compte déjà existant
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Nom d'utilisateur
+
+ Veuillez renseigner votre nom d'utilisateurs
+
+
+
+
+
+
+
+
+
+
+ Mot de passe
+
+
+ Veuillez renseigner votre mot de passe
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Code/IHM/UCConnexion.xaml.cs b/Code/IHM/UCConnexion.xaml.cs
new file mode 100644
index 0000000..1b8f659
--- /dev/null
+++ b/Code/IHM/UCConnexion.xaml.cs
@@ -0,0 +1,58 @@
+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 UCConnexion.xaml
+ ///
+ public partial class UCConnexion : UserControl
+ {
+ public Navigator Nav => (App.Current as App).Navigator;
+ public UCConnexion()
+ {
+ InitializeComponent();
+ }
+
+ private void Button_Click_Acceuil(object sender, RoutedEventArgs e)
+ {
+ Nav.NavigateTo(Navigator.PART_MAIN);
+ }
+
+ private void Button_Click_Connection(object sender, RoutedEventArgs e)
+ {
+ ErrorPassword.Visibility = Visibility.Hidden;
+ Password.Background = new SolidColorBrush(Colors.White);
+ ErrorUserName.Visibility = Visibility.Hidden;
+ UserName.Background = new SolidColorBrush(Colors.White);
+ if (UserName.Text.ToString() == "")
+ {
+ ErrorUserName.Visibility = Visibility.Visible;
+ UserName.Background = new BrushConverter().ConvertFromString("#FF6347") as SolidColorBrush;
+ }
+ if (Password.Password.ToString() == "")
+ {
+ ErrorPassword.Visibility = Visibility.Visible;
+ Password.Background = new BrushConverter().ConvertFromString("#FF6347") as SolidColorBrush;
+ }
+ }
+
+ private void Button_Click_Forget_Password(object sender, RoutedEventArgs e)
+ {
+ // TO DO
+ }
+
+ }
+}
diff --git a/Code/IHM/UCEcheancier.xaml b/Code/IHM/UCEcheancier.xaml
new file mode 100644
index 0000000..655e587
--- /dev/null
+++ b/Code/IHM/UCEcheancier.xaml
@@ -0,0 +1,43 @@
+
+
+ Echeancier
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Code/IHM/UCEcheancier.xaml.cs b/Code/IHM/UCEcheancier.xaml.cs
new file mode 100644
index 0000000..0a7d142
--- /dev/null
+++ b/Code/IHM/UCEcheancier.xaml.cs
@@ -0,0 +1,40 @@
+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 UCEcheancier.xaml
+ ///
+ public partial class UCEcheancier : UserControl
+ {
+ public Navigator Nav => (App.Current as App).Navigator;
+
+ public UCEcheancier()
+ {
+ InitializeComponent();
+ }
+
+ private void Button_Click_Ajouter_Echeance(object sender, RoutedEventArgs e)
+ {
+ Nav.NavigateTo(Navigator.PART_AJOUTER_ECHEANCE);
+ }
+
+ private void Button_Click_Supprimer_Echeance(object sender, RoutedEventArgs e)
+ {
+ Nav.NavigateTo(Navigator.PART_SUPPRIMER_ECHEANCE);
+ }
+ }
+}
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/UCInscription.xaml b/Code/IHM/UCInscription.xaml
new file mode 100644
index 0000000..7cc2357
--- /dev/null
+++ b/Code/IHM/UCInscription.xaml
@@ -0,0 +1,94 @@
+
+
+
+ Inscription
+ Veuillez créer votre compte en retrant vos informations
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Code/IHM/UCInscription.xaml.cs b/Code/IHM/UCInscription.xaml.cs
new file mode 100644
index 0000000..73dee6c
--- /dev/null
+++ b/Code/IHM/UCInscription.xaml.cs
@@ -0,0 +1,39 @@
+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 UCInscription.xaml
+ ///
+ public partial class UCInscription : UserControl
+ {
+ public Navigator Nav => (App.Current as App).Navigator;
+
+ public UCInscription()
+ {
+ InitializeComponent();
+ }
+ private void Button_Click_Acceuil(object sender, RoutedEventArgs e)
+ {
+ Nav.NavigateTo(Navigator.PART_MAIN);
+ }
+
+ private void Button_Click_Validation(object sender, RoutedEventArgs e)
+ {
+ // TO DO
+ }
+ }
+}
diff --git a/Code/IHM/UCModifSolde.xaml b/Code/IHM/UCModifSolde.xaml
new file mode 100644
index 0000000..24ad5c2
--- /dev/null
+++ b/Code/IHM/UCModifSolde.xaml
@@ -0,0 +1,37 @@
+
+
+
+ Modification de votre solde
+
+
+
+
+
+
+
+
+ Nouveau solde
+
+
+
+
+
+
+
+
+
+
diff --git a/Code/IHM/UCModifSolde.xaml.cs b/Code/IHM/UCModifSolde.xaml.cs
new file mode 100644
index 0000000..f081079
--- /dev/null
+++ b/Code/IHM/UCModifSolde.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 Page1.xaml
+ ///
+ public partial class UCModifSolde : UserControl
+ {
+ public Navigator Nav => (App.Current as App).Navigator;
+
+ public UCModifSolde()
+ {
+ InitializeComponent();
+ }
+ private void Button_Click_Compte(object sender, RoutedEventArgs e)
+ {
+ Nav.NavigateTo(Navigator.PART_COMPTE);
+ }
+ }
+}
diff --git a/Code/IHM/UCOperation.xaml b/Code/IHM/UCOperation.xaml
new file mode 100644
index 0000000..46f6016
--- /dev/null
+++ b/Code/IHM/UCOperation.xaml
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Code/IHM/UCOperation.xaml.cs b/Code/IHM/UCOperation.xaml.cs
new file mode 100644
index 0000000..c712b51
--- /dev/null
+++ b/Code/IHM/UCOperation.xaml.cs
@@ -0,0 +1,46 @@
+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 UCOperation.xaml
+ ///
+ 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/UCPlanification.xaml b/Code/IHM/UCPlanification.xaml
new file mode 100644
index 0000000..4579724
--- /dev/null
+++ b/Code/IHM/UCPlanification.xaml
@@ -0,0 +1,50 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Code/IHM/UCPlanification.xaml.cs b/Code/IHM/UCPlanification.xaml.cs
new file mode 100644
index 0000000..bd08468
--- /dev/null
+++ b/Code/IHM/UCPlanification.xaml.cs
@@ -0,0 +1,40 @@
+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 UCPlannification.xaml
+ ///
+ public partial class UCPlanification : UserControl
+ {
+ public Navigator Nav => (App.Current as App).Navigator;
+
+ public UCPlanification()
+ {
+ InitializeComponent();
+ }
+
+ private void Button_Click_Ajouter_Planification(object sender, RoutedEventArgs e)
+ {
+ Nav.NavigateTo(Navigator.PART_AJOUTER_PLANIFICATION);
+ }
+
+ private void Button_Click_Supprimer_Planification(object sender, RoutedEventArgs e)
+ {
+ Nav.NavigateTo(Navigator.PART_SUPPRIMER_PLANIFICATION);
+ }
+ }
+}
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/UCSupprimerBanque.xaml b/Code/IHM/UCSupprimerBanque.xaml
new file mode 100644
index 0000000..87c694b
--- /dev/null
+++ b/Code/IHM/UCSupprimerBanque.xaml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
diff --git a/Code/IHM/UCSupprimerBanque.xaml.cs b/Code/IHM/UCSupprimerBanque.xaml.cs
new file mode 100644
index 0000000..763c752
--- /dev/null
+++ b/Code/IHM/UCSupprimerBanque.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 UCSupprimerBanque.xaml
+ ///
+ public partial class UCSupprimerBanque : UserControl
+ {
+ public Navigator Nav => (App.Current as App).Navigator;
+ public UCSupprimerBanque()
+ {
+ InitializeComponent();
+ }
+
+ private void Button_Click_Retour(object sender, RoutedEventArgs e)
+ {
+ Nav.NavigateTo(Navigator.PART_COMPTE);
+ }
+ }
+}
diff --git a/Code/IHM/UCSupprimerCompte.xaml b/Code/IHM/UCSupprimerCompte.xaml
new file mode 100644
index 0000000..38ec1d4
--- /dev/null
+++ b/Code/IHM/UCSupprimerCompte.xaml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
diff --git a/Code/IHM/UCSupprimerCompte.xaml.cs b/Code/IHM/UCSupprimerCompte.xaml.cs
new file mode 100644
index 0000000..9402e27
--- /dev/null
+++ b/Code/IHM/UCSupprimerCompte.xaml.cs
@@ -0,0 +1,35 @@
+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 UCSupprimerCompte.xaml
+ ///
+ public partial class UCSupprimerCompte : UserControl
+ {
+ public Navigator Nav => (App.Current as App).Navigator;
+
+ public UCSupprimerCompte()
+ {
+ InitializeComponent();
+ }
+
+ private void Button_Click_Retour(object sender, RoutedEventArgs e)
+ {
+ Nav.NavigateTo(Navigator.PART_COMPTE);
+ }
+ }
+}
diff --git a/Code/IHM/UCSupprimerEcheance.xaml b/Code/IHM/UCSupprimerEcheance.xaml
new file mode 100644
index 0000000..a5f5e43
--- /dev/null
+++ b/Code/IHM/UCSupprimerEcheance.xaml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
diff --git a/Code/IHM/UCSupprimerEcheance.xaml.cs b/Code/IHM/UCSupprimerEcheance.xaml.cs
new file mode 100644
index 0000000..cbdcfea
--- /dev/null
+++ b/Code/IHM/UCSupprimerEcheance.xaml.cs
@@ -0,0 +1,35 @@
+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 UCSupprimerEcheance.xaml
+ ///
+ public partial class UCSupprimerEcheance : UserControl
+ {
+ public Navigator Nav => (App.Current as App).Navigator;
+
+ public UCSupprimerEcheance()
+ {
+ InitializeComponent();
+ }
+
+ private void Button_Click_Retour(object sender, RoutedEventArgs e)
+ {
+ Nav.NavigateTo(Navigator.PART_ECHEANCIER);
+ }
+ }
+}
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);
+ }
+ }
+}
diff --git a/Code/IHM/UCSupprimerPlanification.xaml b/Code/IHM/UCSupprimerPlanification.xaml
new file mode 100644
index 0000000..5593411
--- /dev/null
+++ b/Code/IHM/UCSupprimerPlanification.xaml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
diff --git a/Code/IHM/UCSupprimerPlanification.xaml.cs b/Code/IHM/UCSupprimerPlanification.xaml.cs
new file mode 100644
index 0000000..2ea2934
--- /dev/null
+++ b/Code/IHM/UCSupprimerPlanification.xaml.cs
@@ -0,0 +1,35 @@
+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 UCSupprimerPlanification.xaml
+ ///
+ public partial class UCSupprimerPlanification : UserControl
+ {
+ public Navigator Nav => (App.Current as App).Navigator;
+
+ public UCSupprimerPlanification()
+ {
+ InitializeComponent();
+ }
+
+ private void Button_Click_Retour(object sender, RoutedEventArgs e)
+ {
+ Nav.NavigateTo(Navigator.PART_PLANIFICATION);
+ }
+ }
+}
diff --git a/Code/IHM/UCTableauDeBord.xaml b/Code/IHM/UCTableauDeBord.xaml
new file mode 100644
index 0000000..51c72e1
--- /dev/null
+++ b/Code/IHM/UCTableauDeBord.xaml
@@ -0,0 +1,12 @@
+
+
+
+
+
diff --git a/Code/IHM/UCTableauDeBord.xaml.cs b/Code/IHM/UCTableauDeBord.xaml.cs
new file mode 100644
index 0000000..9bcbd8a
--- /dev/null
+++ b/Code/IHM/UCTableauDeBord.xaml.cs
@@ -0,0 +1,28 @@
+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 UCTableauDeBord.xaml
+ ///
+ public partial class UCTableauDeBord : UserControl
+ {
+ public UCTableauDeBord()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/Code/IHM/images/fond.jpg b/Code/IHM/images/fond.jpg
new file mode 100644
index 0000000..014a6d6
Binary files /dev/null and b/Code/IHM/images/fond.jpg differ
diff --git a/Code/IHM/images/fond2.png b/Code/IHM/images/fond2.png
new file mode 100644
index 0000000..51886cd
Binary files /dev/null and b/Code/IHM/images/fond2.png differ
diff --git a/Code/IHM/images/logo.png b/Code/IHM/images/logo.png
new file mode 100644
index 0000000..7ab20ec
Binary files /dev/null and b/Code/IHM/images/logo.png differ