| 1234567891011121314151617181920212223242526272829303132333435 |
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace CarLocalMeter
- {
- static class Program
- {
- /// <summary>
- /// 应用程序的主入口点。
- /// </summary>
- [STAThread]
- static void Main()
- {
- bool createNew;
- using (System.Threading.Mutex m = new System.Threading.Mutex(true, Application.ProductName, out createNew))
- {
- if (createNew)
- {
- Application.EnableVisualStyles();
- Application.SetCompatibleTextRenderingDefault(false);
- Application.Run(new frmMain());//
- }
- else
- {
- MessageBox.Show("已启动该程序,不允许重复启动!");
- }
- }
- }
- }
- }
|