liuying
2024-11-28 6c5a7bd1a9342d8e6792773aef3d62588a60714d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using iWareCC.Forms;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
 
namespace iWareCC
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            bool result; Mutex MyMutex = new Mutex(true, "XiGang_iWareCC", out result);
 
            if (result)
            {
                Yitter.IdGenerator.IdGeneratorOptions options = new Yitter.IdGenerator.IdGeneratorOptions(1);
                Yitter.IdGenerator.YitIdHelper.SetIdGenerator(options);
                FormCC cc = new FormCC();
                //if (SystemCheckForm.Frm_SystemCheckResult())
                //{
                cc.Show();
                //}
                Application.Run();
            }
            else
            {
                //程序已经启动
                MessageBox.Show("程序已启动");
            }
        }
    }
}