diff --git a/ProjetTheAlone/View/Accueil.xaml b/ProjetTheAlone/View/Accueil.xaml
new file mode 100644
index 0000000..2ceb809
--- /dev/null
+++ b/ProjetTheAlone/View/Accueil.xaml
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ProjetTheAlone/View/Accueil.xaml.cs b/ProjetTheAlone/View/Accueil.xaml.cs
new file mode 100644
index 0000000..2e34fdd
--- /dev/null
+++ b/ProjetTheAlone/View/Accueil.xaml.cs
@@ -0,0 +1,67 @@
+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.Shapes;
+
+namespace ProjetTheAlone.View
+{
+ ///
+ /// Logique d'interaction pour Accueil.xaml
+ ///
+ public partial class Accueil : Window
+ {
+ public Accueil()
+ {
+ InitializeComponent();
+ }
+ private static bool openaffichage = false;
+ private static bool openencodage = false;
+
+ public static bool Openaffichage { get => openaffichage; set => openaffichage = value; }
+ public static bool Openencodage { get => openencodage; set => openencodage = value; }
+
+ private void BtnAffichage_Click(object sender, RoutedEventArgs e)
+ {
+ if (!Openaffichage)
+ {
+ Openaffichage = true;
+ DashBoard w = new DashBoard();
+ w.Show();
+
+ }
+ else
+ {
+ MessageBox.Show("Fenêtre d'affichage déjà ouverte.", "Warning", MessageBoxButton.OK, MessageBoxImage.Warning);
+ }
+ }
+
+ private void BtnEncodage_Click(object sender, RoutedEventArgs e)
+ {
+ if (!Openencodage)
+ {
+ Openencodage = true;
+ FicEncodage w = new FicEncodage();
+ w.Show();
+
+ }
+
+ else
+ {
+ MessageBox.Show("Fenêtre d'encodage déjà ouverte.", "Warning", MessageBoxButton.OK, MessageBoxImage.Warning);
+ }
+ }
+ private void BtnQuitter_Click(object sender, RoutedEventArgs e)
+ {
+ Close();
+ }
+ }
+}
diff --git a/ProjetTheAlone/View/FicBeneficiaireEncode.xaml b/ProjetTheAlone/View/FicBeneficiaireEncode.xaml
new file mode 100644
index 0000000..9d0b3da
--- /dev/null
+++ b/ProjetTheAlone/View/FicBeneficiaireEncode.xaml
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ProjetTheAlone/View/FicBeneficiaireEncode.xaml.cs b/ProjetTheAlone/View/FicBeneficiaireEncode.xaml.cs
new file mode 100644
index 0000000..f2b256c
--- /dev/null
+++ b/ProjetTheAlone/View/FicBeneficiaireEncode.xaml.cs
@@ -0,0 +1,27 @@
+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.Shapes;
+
+namespace ProjetTheAlone.View
+{
+ ///
+ /// Logique d'interaction pour FicBeneficiaireEncode.xaml
+ ///
+ public partial class FicBeneficiaireEncode : Window
+ {
+ public FicBeneficiaireEncode()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/ProjetTheAlone/View/FicEncodage.xaml b/ProjetTheAlone/View/FicEncodage.xaml
new file mode 100644
index 0000000..869c08a
--- /dev/null
+++ b/ProjetTheAlone/View/FicEncodage.xaml
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ProjetTheAlone/View/FicEncodage.xaml.cs b/ProjetTheAlone/View/FicEncodage.xaml.cs
new file mode 100644
index 0000000..0d9d57c
--- /dev/null
+++ b/ProjetTheAlone/View/FicEncodage.xaml.cs
@@ -0,0 +1,51 @@
+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.Shapes;
+
+namespace ProjetTheAlone.View
+{
+ ///
+ /// Logique d'interaction pour FicEncodage.xaml
+ ///
+ public partial class FicEncodage : Window
+ {
+ public FicEncodage()
+ {
+ InitializeComponent();
+ }
+ private void BtnQuitter_Click(object sender, RoutedEventArgs e)
+ {
+ Accueil.Openencodage = false;
+ Close();
+ }
+
+ private void Button_Repas(object sender, RoutedEventArgs e)
+ {
+ FicRepasEncode w = new FicRepasEncode();
+ w.ShowDialog();
+
+ }
+
+ private void Button_Evénement(object sender, RoutedEventArgs e)
+ {
+ FicEvenementEncode w = new FicEvenementEncode();
+ w.ShowDialog();
+ }
+
+ private void Button_Bénéficiaire(object sender, RoutedEventArgs e)
+ {
+ FicBeneficiaireEncode w = new FicBeneficiaireEncode();
+ w.ShowDialog();
+ }
+ }
+}
diff --git a/ProjetTheAlone/View/FicEvenementEncode.xaml b/ProjetTheAlone/View/FicEvenementEncode.xaml
new file mode 100644
index 0000000..1897078
--- /dev/null
+++ b/ProjetTheAlone/View/FicEvenementEncode.xaml
@@ -0,0 +1,122 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ProjetTheAlone/View/FicEvenementEncode.xaml.cs b/ProjetTheAlone/View/FicEvenementEncode.xaml.cs
new file mode 100644
index 0000000..bb647f3
--- /dev/null
+++ b/ProjetTheAlone/View/FicEvenementEncode.xaml.cs
@@ -0,0 +1,48 @@
+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.Shapes;
+
+namespace ProjetTheAlone.View
+{
+ ///
+ /// Logique d'interaction pour FicEvenementEncode.xaml
+ ///
+ public partial class FicEvenementEncode : Window
+ {
+ public FicEvenementEncode()
+ {
+ InitializeComponent();
+ }
+
+ private void btnBénéficiaire_Click(object sender, RoutedEventArgs e)
+ {
+ FicBeneficiaireEncode w = new FicBeneficiaireEncode();
+ w.ShowDialog();
+ }
+
+ private void btnQuitter_Click(object sender, RoutedEventArgs e)
+ {
+ Close();
+ }
+
+ private void btnNewTypeEvent_Click(object sender, RoutedEventArgs e)
+ {
+
+ }
+
+ private void btnNewLieu_Click(object sender, RoutedEventArgs e)
+ {
+
+ }
+ }
+}
diff --git a/ProjetTheAlone/View/FicRepasEncode.xaml b/ProjetTheAlone/View/FicRepasEncode.xaml
new file mode 100644
index 0000000..8cf3336
--- /dev/null
+++ b/ProjetTheAlone/View/FicRepasEncode.xaml
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ProjetTheAlone/View/FicRepasEncode.xaml.cs b/ProjetTheAlone/View/FicRepasEncode.xaml.cs
new file mode 100644
index 0000000..e6c25b8
--- /dev/null
+++ b/ProjetTheAlone/View/FicRepasEncode.xaml.cs
@@ -0,0 +1,32 @@
+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.Shapes;
+
+namespace ProjetTheAlone.View
+{
+ ///
+ /// Logique d'interaction pour FicRepasEncode.xaml
+ ///
+ public partial class FicRepasEncode : Window
+ {
+ public FicRepasEncode()
+ {
+ InitializeComponent();
+ }
+
+ private void btnQuitter_Click(object sender, RoutedEventArgs e)
+ {
+ Close();
+ }
+ }
+}
diff --git a/ProjetTheAlone/ViewModel/EvenementEncode.cs b/ProjetTheAlone/ViewModel/EvenementEncode.cs
new file mode 100644
index 0000000..d95ff39
--- /dev/null
+++ b/ProjetTheAlone/ViewModel/EvenementEncode.cs
@@ -0,0 +1,12 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ProjetTheAlone.ViewModel
+{
+ class EvenementEncode
+ {
+ }
+}
diff --git a/ProjetTheAlone/ViewModel/EventPasseModel.cs b/ProjetTheAlone/ViewModel/EventPasseModel.cs
new file mode 100644
index 0000000..18e018e
--- /dev/null
+++ b/ProjetTheAlone/ViewModel/EventPasseModel.cs
@@ -0,0 +1,32 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ProjetTheAlone.Model
+{
+ public class EventPasseModel : INotifyPropertyChanged
+ {
+ public event PropertyChangedEventHandler PropertyChanged;
+ ObservableCollection classement;
+
+ public ObservableCollection Classement { get => classement; set { classement = value; OnPropertyChanged("Classement"); } }
+
+ public EventPasseModel(ObservableCollection classement)
+ {
+ Classement = classement;
+ }
+
+ protected void OnPropertyChanged(string name)
+ {
+ PropertyChangedEventHandler handler = PropertyChanged;
+ if (handler != null)
+ {
+ handler(this, new PropertyChangedEventArgs(name));
+ }
+ }
+ }
+}
diff --git a/ProjetTheAlone/ViewModel/RepaModel.cs b/ProjetTheAlone/ViewModel/RepaModel.cs
new file mode 100644
index 0000000..5115706
--- /dev/null
+++ b/ProjetTheAlone/ViewModel/RepaModel.cs
@@ -0,0 +1,43 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.ComponentModel;
+using ProjetTheAlone.Classes;
+using System.Collections.ObjectModel;
+
+namespace ProjetTheAlone.ViewModel
+{
+ public class RepaModel : INotifyPropertyChanged
+ {
+
+ private string quand;
+ private ObservableCollection listPlat = new ObservableCollection();
+
+ public ObservableCollection ListPlat { get => listPlat; set { listPlat = value; OnPropertyChanged("ListPlat"); OnPropertyChanged("Plat1"); OnPropertyChanged("Plat2"); OnPropertyChanged("Plat3"); } }
+ public C_T_plat Plat1 { get => ListPlat[0]; }
+ public C_T_plat Plat2 { get => ListPlat[1]; }
+ public C_T_plat Plat3 { get => ListPlat[2]; }
+ public string Quand { get => quand; set { quand = value; OnPropertyChanged("Quand"); } }
+
+ public event PropertyChangedEventHandler PropertyChanged;
+ protected void OnPropertyChanged(string name)
+ {
+ PropertyChangedEventHandler handler = PropertyChanged;
+ if (handler != null)
+ {
+ handler(this, new PropertyChangedEventArgs(name));
+ }
+ }
+ public RepaModel()
+ {
+
+ }
+ public RepaModel(ObservableCollection ListPlat, string quand)
+ {
+ this.ListPlat = ListPlat;
+ this.Quand = quand;
+ }
+ }
+}