Patch bug message erreur de connection à la base de données
continuous-integration/drone/push Build is passing Details

Link_to_npgsql
Nicolas MAYE 2 years ago
parent 3aa542361a
commit 5206b6cc73

@ -7,6 +7,8 @@ using Npgsql;
using Model; using Model;
using System.IO; using System.IO;
using System.Diagnostics; using System.Diagnostics;
using System.Windows;
using System.Threading;
namespace LinqToPgSQL namespace LinqToPgSQL
{ {
@ -15,7 +17,7 @@ namespace LinqToPgSQL
private static string Host = "90.114.135.116"; private static string Host = "90.114.135.116";
private static string User = "postgres"; private static string User = "postgres";
private static string DBname = "conseco"; private static string DBname = "conseco";
private static string Password = "lulu"; private static string Password = "lul";
private static string Port = "5432"; private static string Port = "5432";
string connString = string connString =
@ -40,6 +42,8 @@ namespace LinqToPgSQL
catch catch
{ {
conn.Close(); 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); Environment.Exit(0);
} }

Loading…
Cancel
Save