using System; using System.Windows.Forms; namespace grapher { static class Program { /// /// The main entry point for the application. /// [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); } } }