Dongle Disposable gemacht.

Stammdatenimporter hinzu gemacht
This commit is contained in:
Husky
2019-03-06 21:04:04 +01:00
parent e0e9fadd1d
commit 9121fa9282
3 changed files with 49 additions and 34 deletions

View File

@@ -14,19 +14,27 @@ namespace SanSystem
[STAThread]
static void Main()
{
Dongle dongle = new Dongle(10, 60);
if (dongle.CheckDongleVorhanden())
uint firmcode;
#if DEBUG
firmcode = 10;
#else
firmcode = 103086;
#endif
using (Dongle dongle = new Dongle(firmcode, 60))
{
dongle.CleanDongle();
Global.Instance.LoadLanguage();
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new frmMain());
}
else
{
MessageBox.Show("Sorry es wurde kein Dongle gefunden!");
Application.Exit();
if (dongle.CheckDongleVorhanden())
{
dongle.CleanDongle();
Global.Instance.LoadLanguage();
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new frmMain());
}
else
{
MessageBox.Show("Sorry es wurde kein Dongle gefunden!");
Application.Exit();
}
}
}
}