| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- using Common;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace CarMeterSystem
- {
- 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);
- if (AppConfigCache.productType == "0")
- {
- Application.Run(new Form1());//
- }
- else if (AppConfigCache.productType == "3")
- {
- Application.Run(new fromContect());//
- }
- else
- {
- Application.Run(new frmMain());//
- }
- }
- else
- {
- MessageBox.Show("已启动该程序,不允许重复启动!");
- }
- }
- }
- }
- }
|