From abc3480b882519c7046c2d7ceac6c13ebbd83af4 Mon Sep 17 00:00:00 2001 From: adri Date: Sat, 19 Jan 2019 11:04:17 +0100 Subject: [PATCH] add files --- ProjetTheAlone/View/Accueil.xaml | 29 +++++ ProjetTheAlone/View/Accueil.xaml.cs | 67 ++++++++++ .../View/FicBeneficiaireEncode.xaml | 62 +++++++++ .../View/FicBeneficiaireEncode.xaml.cs | 27 ++++ ProjetTheAlone/View/FicEncodage.xaml | 29 +++++ ProjetTheAlone/View/FicEncodage.xaml.cs | 51 ++++++++ ProjetTheAlone/View/FicEvenementEncode.xaml | 122 ++++++++++++++++++ .../View/FicEvenementEncode.xaml.cs | 48 +++++++ ProjetTheAlone/View/FicRepasEncode.xaml | 32 +++++ ProjetTheAlone/View/FicRepasEncode.xaml.cs | 32 +++++ ProjetTheAlone/ViewModel/EvenementEncode.cs | 12 ++ ProjetTheAlone/ViewModel/EventPasseModel.cs | 32 +++++ ProjetTheAlone/ViewModel/RepaModel.cs | 43 ++++++ 13 files changed, 586 insertions(+) create mode 100644 ProjetTheAlone/View/Accueil.xaml create mode 100644 ProjetTheAlone/View/Accueil.xaml.cs create mode 100644 ProjetTheAlone/View/FicBeneficiaireEncode.xaml create mode 100644 ProjetTheAlone/View/FicBeneficiaireEncode.xaml.cs create mode 100644 ProjetTheAlone/View/FicEncodage.xaml create mode 100644 ProjetTheAlone/View/FicEncodage.xaml.cs create mode 100644 ProjetTheAlone/View/FicEvenementEncode.xaml create mode 100644 ProjetTheAlone/View/FicEvenementEncode.xaml.cs create mode 100644 ProjetTheAlone/View/FicRepasEncode.xaml create mode 100644 ProjetTheAlone/View/FicRepasEncode.xaml.cs create mode 100644 ProjetTheAlone/ViewModel/EvenementEncode.cs create mode 100644 ProjetTheAlone/ViewModel/EventPasseModel.cs create mode 100644 ProjetTheAlone/ViewModel/RepaModel.cs 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/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; + } + } +}