laatzen/ServiceFwUpdate/Ui/ServiceFwUpdateLoader/Program.cs
2025-06-05 17:20:15 +02:00

30 lines
832 B
C#

using System;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Windows.Forms;
namespace Xylem.ServiceFwUpdate.Ui.FwUpdateLoader
{
[Serializable]
static class Program
{
private static Mutex _mutex;
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
var assemblyName = System.Reflection.Assembly.GetExecutingAssembly().GetName().FullName;
_mutex = new Mutex(true, assemblyName, out var isNotRunning);
if (!isNotRunning)
return;
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new FrmFwUpdateLoader());
}
}
}