diff --git a/BerichtGen/Bericht.cs b/BerichtGen/Bericht.cs index e7a09d2..0d39824 100644 --- a/BerichtGen/Bericht.cs +++ b/BerichtGen/Bericht.cs @@ -12,7 +12,7 @@ using System.Threading.Tasks; namespace BerichtGen { - public class Bericht + class Bericht { private List _listImages; /// diff --git a/BerichtGen/BerichtGen.csproj b/BerichtGen/BerichtGen.csproj index 951ae21..601fece 100644 --- a/BerichtGen/BerichtGen.csproj +++ b/BerichtGen/BerichtGen.csproj @@ -70,15 +70,17 @@ - - - Options.cs + + Form + + + FrmOptions.cs - - Options.cs + + FrmOptions.cs diff --git a/BerichtGen/Options.Designer.cs b/BerichtGen/FrmOptions.Designer.cs similarity index 98% rename from BerichtGen/Options.Designer.cs rename to BerichtGen/FrmOptions.Designer.cs index b4e17f5..6b41403 100644 --- a/BerichtGen/Options.Designer.cs +++ b/BerichtGen/FrmOptions.Designer.cs @@ -1,6 +1,6 @@ namespace BerichtGen { - partial class Options + partial class FrmOptions { /// /// Required designer variable. @@ -103,7 +103,7 @@ this.label1.TabIndex = 5; this.label1.Text = "Nach dem erzeugen öffnen"; // - // Options + // FrmOptions // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; @@ -114,7 +114,7 @@ this.Controls.Add(this.cb_pdf); this.Controls.Add(this.cb_doc); this.Controls.Add(this.btn_start); - this.Name = "Options"; + this.Name = "FrmOptions"; this.Text = "Options"; this.ResumeLayout(false); this.PerformLayout(); diff --git a/BerichtGen/Options.cs b/BerichtGen/FrmOptions.cs similarity index 75% rename from BerichtGen/Options.cs rename to BerichtGen/FrmOptions.cs index bda280b..ee74234 100644 --- a/BerichtGen/Options.cs +++ b/BerichtGen/FrmOptions.cs @@ -4,7 +4,6 @@ using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Data; -using System.Diagnostics; using System.Drawing; using System.IO; using System.Linq; @@ -15,7 +14,7 @@ using System.Windows.Forms; namespace BerichtGen { - public partial class Options : Form + public partial class FrmOptions : Form { Thread generateProtokollThread; Hashtable grundDaten; @@ -24,25 +23,26 @@ namespace BerichtGen string speicherpfad; string source; List bilderObjects; + DataTable tableContent = null; - - - public Options(string firma, string vorlage, string speicherpfad, Hashtable grunddaten, List bilderObjects, DataTable tableContent = null) + public FrmOptions(string firma, string vorlage, string speicherpfad, Hashtable grunddaten, List bilderObjects, DataTable tableContent = null) { InitializeComponent(); + this.firma = firma; this.vorlage = vorlage; this.speicherpfad = speicherpfad; this.grundDaten = grunddaten; this.bilderObjects = bilderObjects; this.tableContent = tableContent; - this.source = Path.Combine("documents",firma, vorlage); + this.source = Path.Combine("documents", firma, vorlage); + } void Gen() { Bericht bericht = new Bericht(); - bericht.Erzeuge(source, speicherpfad, grundDaten,bilderObjects,tableContent); + bericht.Erzeuge(source, speicherpfad, grundDaten, bilderObjects, tableContent); } private void btn_start_Click(object sender, EventArgs e) @@ -53,10 +53,10 @@ namespace BerichtGen while (generateProtokollThread.IsAlive) { - + } - if(rb_yes.Checked) + if (rb_yes.Checked) { } diff --git a/BerichtGen/Options.resx b/BerichtGen/FrmOptions.resx similarity index 100% rename from BerichtGen/Options.resx rename to BerichtGen/FrmOptions.resx diff --git a/SanSystem/UCInliner.cs b/SanSystem/UCInliner.cs index a7b56d8..5cd37bc 100644 --- a/SanSystem/UCInliner.cs +++ b/SanSystem/UCInliner.cs @@ -212,7 +212,7 @@ namespace SanSystem Kommentar = "TestBild", Path = @"C:\Users\Damian\Desktop\SanVerwaltung\SanSystem\bin\Debug\projekte\18-850\SW01-SW02\Schachtanbindung\4d0a1627-bd51-48d6-a27e-a4c6691b02d2.jpg" }); - BerichtGen.Options options = new BerichtGen.Options("", "", "", grunddaten,bilderO); + BerichtGen.FrmOptions options = new BerichtGen.FrmOptions("", "", "", grunddaten,bilderO); options.ShowDialog(); } @@ -314,7 +314,7 @@ namespace SanSystem private void btn_create_protokol_Click(object sender, EventArgs e) { Hashtable hashtable = inliner.MakeProtokoll(destinationPath); - BerichtGen.Options options = new BerichtGen.Options("JUME", "liner_einbau.docx", "./", hashtable, new List()); + BerichtGen.FrmOptions options = new BerichtGen.FrmOptions("JUME", "liner_einbau.docx", "./", hashtable, new List()); options.ShowDialog(); } } diff --git a/SanSystem/frmObjekteList.cs b/SanSystem/frmObjekteList.cs index 8532a75..819969c 100644 --- a/SanSystem/frmObjekteList.cs +++ b/SanSystem/frmObjekteList.cs @@ -270,7 +270,7 @@ namespace SanSystem dr["bemerkung"] = obj.Bemerkung; linereintraege.Rows.Add(dr); } - BerichtGen.Options options = new BerichtGen.Options("JUME", "KalibrierungAuflistung.docx", "", grundDaten, null, linereintraege); + BerichtGen.FrmOptions options = new BerichtGen.FrmOptions("JUME", "KalibrierungAuflistung.docx", "", grundDaten, null, linereintraege); options.ShowDialog(); }