diff --git a/Code/IHM/MainWindow.xaml b/Code/IHM/MainWindow.xaml
index 4a745ad..ecdd3d5 100644
--- a/Code/IHM/MainWindow.xaml
+++ b/Code/IHM/MainWindow.xaml
@@ -7,7 +7,12 @@
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
-
+
+
+
+
+
+
diff --git a/Code/IHM/MainWindow.xaml.cs b/Code/IHM/MainWindow.xaml.cs
index f776a43..9036333 100644
--- a/Code/IHM/MainWindow.xaml.cs
+++ b/Code/IHM/MainWindow.xaml.cs
@@ -42,9 +42,13 @@ namespace IHM
private void test_Click(object sender, RoutedEventArgs e)
{
- Manager.LoadInscrit("stef@.com", "teststef");
- testSelect();
- /* testSuppression();*/
+ Manager.LoadInscrit(id.Text,mdp.Text);
+ if (Manager.SelectedInscrits != null)
+ {
+ idpers.Text = Manager.SelectedInscrits;
+ testSelect();
+ }
+ else idpers.Text = "";
}
}
diff --git a/Code/LinqToPgSQL/PersLinqToPgSQL.cs b/Code/LinqToPgSQL/PersLinqToPgSQL.cs
index ed0d0d6..4114e0c 100644
--- a/Code/LinqToPgSQL/PersLinqToPgSQL.cs
+++ b/Code/LinqToPgSQL/PersLinqToPgSQL.cs
@@ -9,6 +9,7 @@ using Npgsql;
using Model;
using System.IO;
using System.Diagnostics;
+using System.Windows;
namespace LinqToPgSQL
{
@@ -35,13 +36,12 @@ namespace LinqToPgSQL
return resultat;
}
catch (Exception ex)
- { Console.Out.WriteLine("A GERER");
- return null;
+ {
+ MessageBox.Show("Utilisateur inconnu");
+ dr.Close();
+ return null;
}
- dr.Close();
-
}
-
/*Revoir la BDD, probleme de clé étrangère de devise*/
diff --git a/Code/Model/Banque.cs b/Code/Model/Banque.cs
index 43fd4e2..9181513 100644
--- a/Code/Model/Banque.cs
+++ b/Code/Model/Banque.cs
@@ -11,7 +11,7 @@ namespace Model
public string Nom { get; private set; }
public string UrlSite { get; private set; }
public string UrlLogo { get; private set; }
- public List ListeDesComptes { get; private set; } = new List();
+ private List ListeDesComptes { get; set; } = new List();
public Banque(string nom, string urlSite, string urlLogo)
{
diff --git a/Code/Model/Inscrit.cs b/Code/Model/Inscrit.cs
index c952c38..7de9d73 100644
--- a/Code/Model/Inscrit.cs
+++ b/Code/Model/Inscrit.cs
@@ -48,7 +48,7 @@ namespace Model
public string Mdp { get; private set; }
public double SoldeTotal { get; private set; }
public Devises Dev { get; private set; }
- public List LesBanques { get; private set; } = new List();
+ private List LesBanques { get; set; } = new List();