using System; using System.Threading; using System.Windows.Forms; namespace Venus_RT { internal static class Program { /// /// 应用程序的主入口点。 /// [STAThread] static void Main() { bool createdNew; using (Mutex mutex = new Mutex(true, Application.ProductName, out createdNew)) { if (createdNew) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new RtApplication()); } else { MessageBox.Show("Only One Venus_RT is allowed"); System.Environment.Exit(1); } } } } }