From 5206b6cc732b71a2f3495079a873e3a899a2ed97 Mon Sep 17 00:00:00 2001 From: nimaye Date: Thu, 20 Oct 2022 08:32:34 +0200 Subject: [PATCH] =?UTF-8?q?Patch=20bug=20message=20erreur=20de=20connectio?= =?UTF-8?q?n=20=C3=A0=20la=20base=20de=20donn=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Code/LinqToPgSQL/PersLinqToPgSQL.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Code/LinqToPgSQL/PersLinqToPgSQL.cs b/Code/LinqToPgSQL/PersLinqToPgSQL.cs index 6224a4d..c95c376 100644 --- a/Code/LinqToPgSQL/PersLinqToPgSQL.cs +++ b/Code/LinqToPgSQL/PersLinqToPgSQL.cs @@ -7,6 +7,8 @@ using Npgsql; using Model; using System.IO; using System.Diagnostics; +using System.Windows; +using System.Threading; namespace LinqToPgSQL { @@ -15,7 +17,7 @@ namespace LinqToPgSQL private static string Host = "90.114.135.116"; private static string User = "postgres"; private static string DBname = "conseco"; - private static string Password = "lulu"; + private static string Password = "lul"; private static string Port = "5432"; string connString = @@ -40,6 +42,8 @@ namespace LinqToPgSQL catch { conn.Close(); + + MessageBox.Show("Problème de connection à la base de données. L'application se fermera après fermeture de la fenêtre"); Environment.Exit(0); }