Es wird überprüft auf den Datenbank version
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using Database;
|
||||
using FluentFTP;
|
||||
using KlassenBIB;
|
||||
using SanShared.Exceptions;
|
||||
using SchnittstelleImporter;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -31,8 +32,15 @@ namespace SanSystem
|
||||
//Global.Instance.
|
||||
|
||||
if (!Directory.Exists(Global.Instance.Projektpfad)) Directory.CreateDirectory(Global.Instance.Projektpfad);
|
||||
Datenbank.Instance.LoadProjekt(Global.Instance.ProjektNummer, Global.Instance.Projektpfad);// Path.Combine(Global.Instance.Projektpfad,"18-850.xaml"));
|
||||
|
||||
try
|
||||
{
|
||||
Datenbank.Instance.LoadProjekt(Global.Instance.ProjektNummer, Global.Instance.Projektpfad);// Path.Combine(Global.Instance.Projektpfad,"18-850.xaml"));
|
||||
}
|
||||
catch(DataBaseVersionMismatchException)
|
||||
{
|
||||
MessageBox.Show("Database version mistmatch\nProgramm wird beendet");
|
||||
Environment.Exit(0);
|
||||
}
|
||||
|
||||
//Datenbank.Instance.CreateProjekt("");
|
||||
this.Width = Screen.PrimaryScreen.WorkingArea.Width;
|
||||
|
||||
Reference in New Issue
Block a user