Files
CleanMachine/CleanMachineHMI/Program.cs

41 lines
1.1 KiB
C#
Raw 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-05-06 12:28:16 +08:00
Global.LoadTheme();
2021-06-05 14:17:30 +08:00
Application.SetCompatibleTextRenderingDefault(false);
2022-05-06 12:28:16 +08:00
Global.LoadAllFormData();
Application.Run(Global.LoginForm);
2021-06-05 14:17:30 +08:00
}
else
{
KryptonMessageBox.Show("The program is running!");
}
}
}
}