Dichtheitsprüfung aufgrund von DSVGO deaktiviert
This commit is contained in:
2
SanSystem/FrmSelectNewSan.Designer.cs
generated
2
SanSystem/FrmSelectNewSan.Designer.cs
generated
@@ -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);
|
||||
//
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
@@ -246,8 +246,8 @@
|
||||
<Compile Include="Global.cs" />
|
||||
<Compile Include="MassenStatistik.cs" />
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="ProgrammModule.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Sanierungsarten.cs" />
|
||||
<Compile Include="UCInliner.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
|
||||
2
SanSystem/UCInliner.Designer.cs
generated
2
SanSystem/UCInliner.Designer.cs
generated
@@ -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);
|
||||
//
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user