Dateien können jetzt über FTP heruntergeladen werden

This commit is contained in:
Husky
2018-07-01 20:42:13 +02:00
parent e45ae7447d
commit 592b41a926
11 changed files with 145 additions and 20 deletions

View File

@@ -1,10 +1,13 @@
using Database;
using FluentFTP;
using KlassenBIB;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@@ -14,12 +17,16 @@ namespace SanSystem
{
public partial class frmMain : Form
{
public frmMain()
{
InitializeComponent();
Datenbank.Instance.LoadProjekt("./temp/18-850.xaml");
if (!Directory.Exists(Global.Instance.Projektpfad)) Directory.CreateDirectory(Global.Instance.Projektpfad);
Datenbank.Instance.LoadProjekt(Path.Combine(Global.Instance.Projektpfad,"18-850.xaml"));
//Datenbank.Instance.CreateProjekt("");
this.Width = Screen.PrimaryScreen.WorkingArea.Width;
this.Height = Screen.PrimaryScreen.WorkingArea.Height;
@@ -33,6 +40,8 @@ namespace SanSystem
}
private void frm_main_Load(object sender, EventArgs e)
{