Es wird überprüft auf den Datenbank version

This commit is contained in:
Husky
2018-08-12 11:15:31 +02:00
parent e14f251a69
commit 28141470da
5 changed files with 54 additions and 3 deletions

View File

@@ -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;