Files
Kanalsanierungsverwaltung/BerichtGen/Options.cs
Husky d01e8474ac WIP
2018-07-01 22:39:05 +02:00

54 lines
1.4 KiB
C#

using SanShared;
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace BerichtGen
{
public partial class Options : Form
{
Thread generateProtokollThread;
Hashtable grundDaten;
string firma;
string vorlage;
string speicherpfad;
List<BilderObject> bilderObjects;
public Options(string firma, string vorlage, string speicherpfad, Hashtable grunddaten, List<BilderObject> bilderObjects)
{
InitializeComponent();
this.firma = firma;
this.vorlage = vorlage;
this.speicherpfad = speicherpfad;
this.grundDaten = grunddaten;
this.bilderObjects = bilderObjects;
}
void Gen()
{
Bericht bericht = new Bericht();
bericht.Erzeuge("", "", "", grundDaten,bilderObjects);
}
private void btn_start_Click(object sender, EventArgs e)
{
generateProtokollThread = new Thread(Gen);
generateProtokollThread.IsBackground = true;
generateProtokollThread.Start();
while (generateProtokollThread.IsAlive) ;
this.Close();
}
}
}