rawaccel/grapher/Program.cs

29 lines
752 B
C#

using System;
using System.Windows.Forms;
namespace grapher
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
var mutex = new System.Threading.Mutex(true, "RawAccelGrapher", out bool result);
if (!result)
{
MessageBox.Show("Another instance of the Raw Accel Grapher is already running.");
return;
}
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new RawAcceleration());
GC.KeepAlive(mutex);
}
}
}