Détection de bug

connexion
Hugo LIVET 2 years ago
parent 58e1f540a3
commit 37f6961afe

@ -16,5 +16,7 @@ namespace IHM
public partial class App : Application
{
public Manager AllInscrits { get; private set; } = new Manager(new LinqToPgSQL.PersLinqToPgSQL());
//public Manager AllInscrits { get; private set; } = new Manager(new Stub());
}
}

@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
using System.Windows.Data;
namespace IHM.Converters
{
public class Func2WindowPartConverter : IValueConverter
{
public object? Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
Func<UserControl>? windowPartCreator = value as Func<UserControl>;
if (windowPartCreator == null)
{
return null;
}
return windowPartCreator();
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}

@ -61,7 +61,8 @@ namespace IHM
private void test_Click(object sender, RoutedEventArgs e)
{
testSelect();
//testSelect();
}
}
}

@ -33,7 +33,8 @@ namespace LinqToPgSQL
var conn = new NpgsqlConnection(connString);
Console.Out.WriteLine("Ouverture de la connection");
conn.Open();
conn.Open();//gérer l'exception !
//pb de pare-feu a l'iut
var AllInscrit = new NpgsqlCommand("SELECT * FROM Inscrit", conn);

@ -12,6 +12,8 @@ namespace Model
public List<Inscrit> Inscrits = new();
public List<Compte> Comptes = new();
// ajouter load all pour tout les inscrits
public List<Inscrit> LoadInscrit()

Loading…
Cancel
Save