diff --git a/WpfApp1/UCRequinValSubmit.xaml b/WpfApp1/UCRequinValSubmit.xaml
new file mode 100644
index 0000000..8f68808
--- /dev/null
+++ b/WpfApp1/UCRequinValSubmit.xaml
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/WpfApp1/UCRequinValSubmit.xaml.cs b/WpfApp1/UCRequinValSubmit.xaml.cs
new file mode 100644
index 0000000..935848b
--- /dev/null
+++ b/WpfApp1/UCRequinValSubmit.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 WpfApp1
+{
+ ///
+ /// Logique d'interaction pour UCRequinValSubmit.xaml
+ ///
+ public partial class UCRequinValSubmit : UserControl
+ {
+ public UCRequinValSubmit()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/WpfApp1/ValiderSubmit.xaml.cs b/WpfApp1/ValiderSubmit.xaml.cs
index 6516aae..62f6cf4 100644
--- a/WpfApp1/ValiderSubmit.xaml.cs
+++ b/WpfApp1/ValiderSubmit.xaml.cs
@@ -1,4 +1,6 @@
-using System;
+using Business;
+using Modèle;
+using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@@ -17,11 +19,36 @@ namespace WpfApp1
///
/// Logique d'interaction pour ValiderSubmit.xaml
///
+ ///
+
public partial class ValiderSubmit : Window
{
+
+ public Manager Mgr => (Application.Current as App).LeManager;
public ValiderSubmit()
{
InitializeComponent();
+ Mgr.LoadRequins();
+
+ DataContext = Mgr;
+
+
+ chargerUC();
+
}
+
+ private void exit_Click(object sender, RoutedEventArgs e)
+ {
+ Close();
+ }
+
+ public void chargerUC()
+ {
+ foreach (Requin req in Mgr.Requins)
+ {
+ laListe.Items.Add(new UserControlRequin { requin = req });
+ }
+ }
+
}
}
diff --git a/WpfApp1/userControlAcceuil.xaml.cs b/WpfApp1/userControlAcceuil.xaml.cs
index 26b325f..39efc29 100644
--- a/WpfApp1/userControlAcceuil.xaml.cs
+++ b/WpfApp1/userControlAcceuil.xaml.cs
@@ -35,7 +35,7 @@ namespace WpfApp1
private void add_Click(object sender, RoutedEventArgs e)
{
- var addSharkWindow = new AddAShark();
+ var addSharkWindow = new ValiderSubmit();
addSharkWindow.ShowDialog();
}