diff --git a/ISET2018_WPF/Fen3.xaml b/ISET2018_WPF/Fen3.xaml
index 5273f63..efd0d16 100644
--- a/ISET2018_WPF/Fen3.xaml
+++ b/ISET2018_WPF/Fen3.xaml
@@ -5,8 +5,43 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:ISET2018_WPF"
mc:Ignorable="d"
- Title="Fen3" Height="450" Width="800">
+ Title="Fen3" Height="450" Width="300">
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ISET2018_WPF/Fen3.xaml.cs b/ISET2018_WPF/Fen3.xaml.cs
index 7a25f07..6ce4bbb 100644
--- a/ISET2018_WPF/Fen3.xaml.cs
+++ b/ISET2018_WPF/Fen3.xaml.cs
@@ -19,10 +19,16 @@ namespace ISET2018_WPF
///
public partial class Fen3 : Window
{
+ Personne p;
public Fen3()
{
InitializeComponent();
}
+
+ private void btnVerif_Click(object sender, RoutedEventArgs e)
+ {
+
+ }
}
public class Data : INotifyPropertyChanged
{
@@ -40,9 +46,9 @@ namespace ISET2018_WPF
private int id;
private string nom, pre;
- public int Id { get => id; set => id = value; }
- public string Nom { get => nom; set => nom = value; }
- public string Pre { get => pre; set => pre = value; }
+ public int ID { get => id; set { id = value; onPropertyChanged("ID"); } }
+ public string Nom { get => nom; set { nom = value; onPropertyChanged("Nom"); } }
+ public string Pre { get => pre; set { pre = value; onPropertyChanged("Pre"); } }
public Personne()
{
@@ -50,13 +56,32 @@ namespace ISET2018_WPF
}
public Personne(string nom, string pre)
{
- Id = -1;
+ ID = -1;
Nom = nom; Pre = pre;
}
public Personne(int id, string nom, string pre)
{
- Id = id;Nom = nom;Pre = pre;
+ ID = id;Nom = nom;Pre = pre;
+ }
+
+ }
+ public class CMDAssigner : ICommand
+ {
+ public event EventHandler CanExecuteChanged;
+ private Action _Action;
+ public CMDAssigner(Action action_)
+ {
+ _Action = action_;
}
+ public bool CanExecute(object parameter)
+ {
+ throw new NotImplementedException();
+ }
+
+ public void Execute(object parameter)
+ {
+ if (_Action != null) _Action();
+ }
}
}