Mutex hinzugefügt.
Imprägnierprotokoll weitergeführt
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
@@ -15,6 +16,12 @@ namespace SanSystem
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
new Mutex(initiallyOwned: true, "SanVerwaltung", out bool result);
|
||||
if(!result)
|
||||
{
|
||||
MessageBox.Show("Bitte nur 1 Instanz starten der Software!", "", MessageBoxButtons.OK, MessageBoxIcon.Hand);
|
||||
Environment.Exit(1);
|
||||
}
|
||||
using (Dongle dongle = new Dongle(60))
|
||||
{
|
||||
if (dongle.CheckDongleVorhanden())
|
||||
|
||||
Reference in New Issue
Block a user