Projekte können nun erzeugt werden und geladen werden

This commit is contained in:
Husky
2018-07-14 20:23:22 +02:00
parent 54b637575c
commit 2be7e9857b
8 changed files with 326 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ using System.IO.Compression;
using System.Diagnostics;
using ICSharpCode.SharpZipLib.Zip;
using ICSharpCode.SharpZipLib.Core;
using KlassenBIB;
namespace Database
{
@@ -43,6 +44,14 @@ namespace Database
return true;
}
public bool InitProjekt(Projekt projekt,string projektpfad)
{
this.projektpfad = Path.Combine(projektpfad,string.Format("{0}.xaml",projekt.Nummer));
loadedProjekt = projekt;
SaveProjekt();
return true;
}
private void UnPackProject(string projekt, string password = "")
{
if (!Directory.Exists("./temp")) Directory.CreateDirectory("./temp");