59 lines
1.5 KiB
C#
59 lines
1.5 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(firma,vorlage, speicherpfad, grundDaten,bilderObjects);
|
|
}
|
|
|
|
private void btn_start_Click(object sender, EventArgs e)
|
|
{
|
|
generateProtokollThread = new Thread(Gen);
|
|
generateProtokollThread.IsBackground = true;
|
|
generateProtokollThread.Start();
|
|
|
|
while (generateProtokollThread.IsAlive) ;
|
|
|
|
if(rb_yes.Checked)
|
|
{
|
|
|
|
}
|
|
|
|
this.Close();
|
|
}
|
|
}
|
|
}
|