44 lines
1.2 KiB
C#
44 lines
1.2 KiB
C#
using CleanMachineHMI.Domain.Enums;
|
||
using CleanMachineHMI.Domain.Models.ViewModels;
|
||
using CleanMachineHMI.forms;
|
||
using CleanMachineHMI.Utils;
|
||
using Krypton.Toolkit;
|
||
using System;
|
||
using System.Collections.Generic;
|
||
using System.Linq;
|
||
using System.Reflection;
|
||
using System.Threading;
|
||
using System.Windows.Forms;
|
||
|
||
namespace CleanMachineHMI
|
||
{
|
||
static class Program
|
||
{
|
||
/// <summary>
|
||
/// 应用程序的主入口点。
|
||
/// </summary>
|
||
[STAThread]
|
||
static void Main()
|
||
{
|
||
bool canCreateNew;
|
||
Mutex m = new Mutex(true, "DRM1", out canCreateNew);
|
||
if (canCreateNew)
|
||
{
|
||
Application.EnableVisualStyles();
|
||
//frmUtil.DB2Json();//语言字典从数据库转json
|
||
GlobalHelper.LoadTheme();
|
||
#if DEBUG
|
||
GlobalHelper.LoadzhCN();
|
||
#endif
|
||
Application.SetCompatibleTextRenderingDefault(false);
|
||
GlobalHelper.LoadAllFormData();
|
||
Application.Run(GlobalHelper.LoginForm);
|
||
}
|
||
else
|
||
{
|
||
KryptonMessageBox.Show("The program is running!");
|
||
}
|
||
}
|
||
}
|
||
}
|