mirror of
https://github.com/snltty/linker.git
synced 2025-10-28 11:21:49 +08:00
27 lines
833 B
C#
27 lines
833 B
C#
namespace cmonitor.install.win
|
|
{
|
|
internal static class Program
|
|
{
|
|
/// <summary>
|
|
/// The main entry point for the application.
|
|
/// </summary>
|
|
[STAThread]
|
|
static void Main()
|
|
{
|
|
Mutex mutex = new Mutex(true, System.Diagnostics.Process.GetCurrentProcess().ProcessName, out bool isAppRunning);
|
|
if (isAppRunning == false)
|
|
{
|
|
Environment.Exit(1);
|
|
}
|
|
|
|
AppDomain.CurrentDomain.UnhandledException += (a, b) =>
|
|
{
|
|
};
|
|
|
|
// To customize application configuration such as set high DPI settings or default font,
|
|
// see https://aka.ms/applicationconfiguration.
|
|
ApplicationConfiguration.Initialize();
|
|
Application.Run(new MainForm());
|
|
}
|
|
}
|
|
} |