Наследование: System.Exception
 /// <summary>
 /// Displays a custom version of this form to display database connection errors
 /// </summary>
 /// <param name="e"></param>
 public static void ShowDbConnectError(DbConnectException e)
 {
     using (ExceptionForm F = new ExceptionForm(e, true))
     {
         F.WindowTitle = "Database Connect Error";
         F.HeaderText  = "Database Connect Error";
         F.Message     = "Unable to establish a connection to the database.";
         F.ImgIcon     = Properties.Resources.vistaWarning;
         F.ShowDialog();
     }
 }
Пример #2
0
 /// <summary>
 /// Displays a custom version of this form to display database connection errors
 /// </summary>
 /// <param name="e"></param>
 public static void ShowDbConnectError(DbConnectException e)
 {
     using (ExceptionForm F = new ExceptionForm(e, true))
     {
         F.WindowTitle = "Database Connect Error";
         F.HeaderText = "Database Connect Error";
         F.Message = "Unable to establish a connection to the database.";
         F.ImgIcon = Properties.Resources.vistaWarning;
         F.ShowDialog();
     }
 }