Umgeschrieben auf Dongle System

This commit is contained in:
Husky
2019-03-05 21:31:24 +01:00
parent b3122cf112
commit e0e9fadd1d
7 changed files with 169 additions and 15 deletions

View File

@@ -14,10 +14,20 @@ namespace SanSystem
[STAThread]
static void Main()
{
Global.Instance.LoadLanguage();
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new frmMain());
Dongle dongle = new Dongle(10, 60);
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();
}
}
}
}