Projekte werden jetzt angezeigt

This commit is contained in:
Husky
2018-07-11 21:55:46 +02:00
parent f0fb978812
commit eb69f42d53
12 changed files with 342 additions and 35 deletions

View File

@@ -15,6 +15,7 @@ namespace Database
public class Datenbank
{
public const string pfad = "./";
public string projekt;
public static readonly Datenbank instance = new Datenbank();
public static Datenbank Instance
{
@@ -27,11 +28,14 @@ namespace Database
public KlassenBIB.Projekt loadedProjekt = null;
private string projektpfad = string.Empty;
public bool LoadProjekt(string filepath)
public bool LoadProjekt(string projekt, string projektpfad)
{
this.projekt = projekt;
//UnPackProject("18-850","willyteufelchen");
//PackSystem("./projekte/18-850.zip", "./projekte/18-850","willyteufelchen");
projektpfad = filepath;
string filepath = Path.Combine(projektpfad, string.Format("{0}.xaml", projekt));
this.projektpfad = filepath;
if (File.Exists(filepath))
loadedProjekt = XamlServices.Load(filepath) as KlassenBIB.Projekt;
else