ExceptionWindow erzeugt

This commit is contained in:
Husky
2019-08-13 21:32:18 +02:00
parent 28d3ea2ed2
commit 009faaccde
3 changed files with 55 additions and 6 deletions

View File

@@ -39,8 +39,9 @@ namespace SanSystem
}
catch(DataBaseVersionMismatchException ex)
{
MessageBox.Show("Software und Datenbank passen nicht zusammen\nProgramm wird beendet\n"+ex.Message);
Environment.Exit(0);
frmExceptionWindow frmException = new frmExceptionWindow(ex.Message);
frmException.FormClosed += FrmException_FormClosed;
frmException.ShowDialog();
}
//Datenbank.Instance.CreateProjekt("");
@@ -68,8 +69,10 @@ namespace SanSystem
}
private void FrmException_FormClosed(object sender, FormClosedEventArgs e)
{
Environment.Exit(0);
}
private void frm_main_Load(object sender, EventArgs e)
{