ExceptionWindow erzeugt
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user