ExceptionWindow erstellt

This commit is contained in:
Husky
2019-08-13 21:24:31 +02:00
parent 9aa0517b44
commit dcc95477af
5 changed files with 200 additions and 2 deletions

View File

@@ -37,9 +37,9 @@ namespace SanSystem
{
Datenbank.Instance.LoadProjekt(Global.Instance.ProjektNummer, Global.Instance.Projektpfad);// Path.Combine(Global.Instance.Projektpfad,"18-850.xaml"));
}
catch(DataBaseVersionMismatchException)
catch(DataBaseVersionMismatchException ex)
{
MessageBox.Show("Database version mistmatch\nProgramm wird beendet");
MessageBox.Show("Software und Datenbank passen nicht zusammen\nProgramm wird beendet\n"+ex.Message);
Environment.Exit(0);
}
@@ -56,12 +56,15 @@ namespace SanSystem
toolStripStatus_projekt_Label.Text = Datenbank.Instance.projekt;
this.Text += " " + Global.Instance.PROGRAMMVERSION;
#if (DEBUG || LAPTOP)
this.Text += " INTERNE DEBUG VERSION";
#endif
if (Wupi.QueryInfo(0, QueryInfoOption.FirmCode) == 0)
this.Text += " nicht geschützter Version nur für TESTZWECKE!";
}