Files
Kanalsanierungsverwaltung/SanSystem/Program.cs
Husky 9121fa9282 Dongle Disposable gemacht.
Stammdatenimporter hinzu gemacht
2019-03-06 21:04:04 +01:00

42 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace SanSystem
{
static class Program
{
/// <summary>
/// Der Haupteinstiegspunkt für die Anwendung.
/// </summary>
[STAThread]
static void Main()
{
uint firmcode;
#if DEBUG
firmcode = 10;
#else
firmcode = 103086;
#endif
using (Dongle dongle = new Dongle(firmcode, 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();
}
}
}
}
}