mirror of
https://github.com/DaKerboul/perun.git
synced 2026-08-09 19:55:40 +02:00
33 lines
897 B
C#
33 lines
897 B
C#
using System;
|
|
using System.Threading;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Perun_v1
|
|
{
|
|
static class Program
|
|
{
|
|
/// <summary>
|
|
/// Main entry point to app
|
|
/// </summary>
|
|
|
|
// Mutex to block multiple instances
|
|
//static Mutex mutex = new Mutex(true, "{5a710507-92e9-4664-9b91-918b8b82f107}");
|
|
|
|
[STAThread]
|
|
|
|
static void Main()
|
|
{
|
|
// Only instance
|
|
Application.EnableVisualStyles();
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|
Application.ApplicationExit += new EventHandler(Application_ApplicationExit);
|
|
|
|
void Application_ApplicationExit(object sender, EventArgs e)
|
|
{
|
|
Properties.Settings.Default.Save(); // We will save settings on exit
|
|
}
|
|
Application.Run(new form_Main()); // Run main form
|
|
}
|
|
}
|
|
}
|