Projekte werden jetzt angezeigt
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user