1234567891011121314151617181920212223242526272829303132333435 |
- using System;
- using System.Threading;
- using System.Windows.Forms;
- namespace Venus_RT
- {
- internal static class Program
- {
- /// <summary>
- /// 应用程序的主入口点。
- /// </summary>
- [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);
- }
- }
-
- }
- }
- }
|