diff --git a/SanSystem/FrmSelectNewSan.Designer.cs b/SanSystem/FrmSelectNewSan.Designer.cs
index 64eff52..4bb59c8 100644
--- a/SanSystem/FrmSelectNewSan.Designer.cs
+++ b/SanSystem/FrmSelectNewSan.Designer.cs
@@ -41,7 +41,7 @@
this.btn_inliner.Name = "btn_inliner";
this.btn_inliner.Size = new System.Drawing.Size(187, 58);
this.btn_inliner.TabIndex = 0;
- this.btn_inliner.Text = "Inliner";
+ this.btn_inliner.Text = "Schlauchliner";
this.btn_inliner.UseVisualStyleBackColor = true;
this.btn_inliner.Click += new System.EventHandler(this.btn_inliner_Click);
//
diff --git a/SanSystem/FrmSelectNewSan.cs b/SanSystem/FrmSelectNewSan.cs
index 79b3101..9b7c4b8 100644
--- a/SanSystem/FrmSelectNewSan.cs
+++ b/SanSystem/FrmSelectNewSan.cs
@@ -93,10 +93,10 @@ namespace SanSystem
using (Dongle dongle = new Dongle(60))
{
- btn_inliner.Enabled = dongle.IsLicensed((byte)Sanierungsarten.INLINER) ? true : false;// sanArt.SanierungActivated(Sanierungsarten.INLINER);
- btn_kurzliner.Enabled = dongle.IsLicensed((byte)Sanierungsarten.KURZLINER) ? true : false; //sanArt.SanierungActivated(Sanierungsarten.KURZLINER);
- btn_hut.Enabled = dongle.IsLicensed((byte)Sanierungsarten.HUTPROFIL) ? true : false;// sanArt.SanierungActivated(Sanierungsarten.HUTPROFIL);
- btn_schacht_anb.Enabled = dongle.IsLicensed((byte)Sanierungsarten.SCHACHTANBINDUNG) ? true : false; // sanArt.SanierungActivated(Sanierungsarten.SCHACHTANBINDUNG);
+ btn_inliner.Enabled = dongle.IsLicensed((byte)AktivierteModule.SCHLAUCHLINER) ? true : false;// sanArt.SanierungActivated(Sanierungsarten.INLINER);
+ btn_kurzliner.Enabled = dongle.IsLicensed((byte)AktivierteModule.KURZLINER) ? true : false; //sanArt.SanierungActivated(Sanierungsarten.KURZLINER);
+ btn_hut.Enabled = dongle.IsLicensed((byte)AktivierteModule.HUTPROFIL) ? true : false;// sanArt.SanierungActivated(Sanierungsarten.HUTPROFIL);
+ btn_schacht_anb.Enabled = dongle.IsLicensed((byte)AktivierteModule.SCHACHTANBINDUNG) ? true : false; // sanArt.SanierungActivated(Sanierungsarten.SCHACHTANBINDUNG);
dongle.CleanDongle();
diff --git a/SanSystem/Sanierungsarten.cs b/SanSystem/ProgrammModule.cs
similarity index 62%
rename from SanSystem/Sanierungsarten.cs
rename to SanSystem/ProgrammModule.cs
index c5b1141..72430a3 100644
--- a/SanSystem/Sanierungsarten.cs
+++ b/SanSystem/ProgrammModule.cs
@@ -6,24 +6,24 @@ using System.Threading.Tasks;
namespace SanSystem
{
- enum Sanierungsarten
+ enum AktivierteModule
{
- INLINER = 1,
+ SCHLAUCHLINER = 1,
SCHACHTANBINDUNG = 2,
KURZLINER = 4,
HUTPROFIL = 8,
- QUICKLOCK = 16
+ QUICKLOCK = 16,
+ DICHTHEITSPRÜFUNG = 32,
}
- class SanArt
+ class ProgrammModules
{
private int mod;
-
- public SanArt(int mod)
+ public ProgrammModules(int mod)
{
this.mod = mod;
}
- public bool SanierungActivated(Sanierungsarten pm)
+ public bool ModulActivated(AktivierteModule pm)
{
return (mod & (int)pm) == (int)pm;
}
diff --git a/SanSystem/SanSystem.csproj b/SanSystem/SanSystem.csproj
index a635b35..8020867 100644
--- a/SanSystem/SanSystem.csproj
+++ b/SanSystem/SanSystem.csproj
@@ -246,8 +246,8 @@
+
-
UserControl
diff --git a/SanSystem/UCInliner.Designer.cs b/SanSystem/UCInliner.Designer.cs
index 10809d4..06dfc69 100644
--- a/SanSystem/UCInliner.Designer.cs
+++ b/SanSystem/UCInliner.Designer.cs
@@ -119,7 +119,7 @@
this.btn_gen_dp.Name = "btn_gen_dp";
this.btn_gen_dp.Size = new System.Drawing.Size(167, 103);
this.btn_gen_dp.TabIndex = 43;
- this.btn_gen_dp.Text = "button1";
+ this.btn_gen_dp.Text = "Dichtigkeitsprüfung";
this.btn_gen_dp.UseVisualStyleBackColor = true;
this.btn_gen_dp.Click += new System.EventHandler(this.Btn_gen_dp_Click);
//
diff --git a/SanSystem/UCInliner.cs b/SanSystem/UCInliner.cs
index db22865..22c66ef 100644
--- a/SanSystem/UCInliner.cs
+++ b/SanSystem/UCInliner.cs
@@ -69,6 +69,11 @@ namespace SanSystem
private void UCInliner_Load(object sender, EventArgs e)
{
+ using(Dongle dongle = new Dongle(60))
+ {
+ btn_gen_dp.Enabled = dongle.IsLicensed((byte)AktivierteModule.SCHLAUCHLINER) ? true : false;
+ dongle.CleanDongle();
+ }
CheckDirectories();
cb_genehmigung.DataBindings.Clear();
cb_stvo.DataBindings.Clear();
@@ -344,6 +349,7 @@ namespace SanSystem
private void GeneriereDP()
{
+#if DEBUG
Global.Instance.StatusMessage = "Generiere Daten";
string dichtheitsprüfungsPfad = Path.Combine(Global.Instance.Projektpfad, "Dichtheitsprüfung");
if (!Directory.Exists(dichtheitsprüfungsPfad))
@@ -374,6 +380,7 @@ namespace SanSystem
{
Global.Instance.StatusMessage = "Fehler beim generieren von Daten: " + ec.Message + " Wahrscheinlich das Protokollprogramm geöffnet";
}
+#endif
}
private void Btn_gen_dp_Click(object sender, EventArgs e)