diff --git a/ProjetTheAlone/UserControlDIY/EventFutur.xaml b/ProjetTheAlone/UserControlDIY/EventFutur.xaml index 1ede8bc..fbbaecb 100644 --- a/ProjetTheAlone/UserControlDIY/EventFutur.xaml +++ b/ProjetTheAlone/UserControlDIY/EventFutur.xaml @@ -19,6 +19,7 @@ - + + diff --git a/ProjetTheAlone/View/DashBoard.xaml b/ProjetTheAlone/View/DashBoard.xaml index 5a83547..dbc1569 100644 --- a/ProjetTheAlone/View/DashBoard.xaml +++ b/ProjetTheAlone/View/DashBoard.xaml @@ -32,14 +32,26 @@ - - - + + + + µ + + + + + + + - - + + + diff --git a/ProjetTheAlone/View/DashBoard.xaml.cs b/ProjetTheAlone/View/DashBoard.xaml.cs index 75fcab5..f56cae3 100644 --- a/ProjetTheAlone/View/DashBoard.xaml.cs +++ b/ProjetTheAlone/View/DashBoard.xaml.cs @@ -63,13 +63,15 @@ namespace ProjetTheAlone.View byte[] result = br.ReadBytes((int)fs.Length); br.Close(); fs.Close(); - Rm.ListPlat.Add(new C_T_plat("Desert", result, null)); - Rm.ListPlat.Add(new C_T_plat("Desert", result, null)); - Rm.ListPlat.Add(new C_T_plat("Desert", result, null)); + Rm.ListPlat.Add(new C_T_plat("Entrée", result, null)); + Rm.ListPlat.Add(new C_T_plat("Plat", result, null)); Rm.ListPlat.Add(new C_T_plat("Desert", result, null)); Console.WriteLine($"~~~~~~{Rm.ListPlat[0].P_nom}~~~~~~"); RepasMatin.ItemsSource = Rm.ListPlat; + //Test.DataContext = Rm.ListPlat[0]; + //Test1.DataContext = Rm.ListPlat[1]; + //Test2.DataContext = Rm.ListPlat[2]; } diff --git a/ProjetTheAlone/ViewModel/Base.cs b/ProjetTheAlone/ViewModel/Base.cs index 6dd8920..d2e2c88 100644 --- a/ProjetTheAlone/ViewModel/Base.cs +++ b/ProjetTheAlone/ViewModel/Base.cs @@ -11,6 +11,16 @@ namespace ProjetTheAlone.ViewModel public class BasePropriete : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; + + protected void OnPropertyChanged(string name) + { + PropertyChangedEventHandler handler = PropertyChanged; + if (handler != null) + { + handler(this, new PropertyChangedEventArgs(name)); + } + } + protected void NotifyPropertyChanged(String propertyName) { PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } protected bool AssignerChamp(ref T field, T value, string propertyName) diff --git a/script.sql b/script.sql new file mode 100644 index 0000000..27e89a2 Binary files /dev/null and b/script.sql differ