Files

42 lines
1.2 KiB
C#
Raw Permalink Normal View History

2021-06-05 14:17:30 +08:00
using CleanMachineHMI.Domain.Enums;
using CleanMachineHMI.Domain.Models.ViewModels;
using CleanMachineHMI.forms;
using CleanMachineHMI.Utils;
2021-12-26 21:30:02 +08:00
using Krypton.Toolkit;
2021-06-05 14:17:30 +08:00
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();
2022-03-19 12:46:23 +08:00
//frmUtil.DB2Json();//语言字典从数据库转json
2022-03-18 21:25:34 +08:00
GlobalHelper.LoadTheme();
2022-03-19 12:46:23 +08:00
GlobalHelper.LoadzhCN();
2021-06-05 14:17:30 +08:00
Application.SetCompatibleTextRenderingDefault(false);
GlobalHelper.LoadAllFormData();
Application.Run(GlobalHelper.LoginForm);
}
else
{
KryptonMessageBox.Show("The program is running!");
}
}
}
}