StableVersion4.3/HL_DynamicElectrocardiogram/Program.cs

47 lines
1.4 KiB
C#

using System;
using System.Windows.Forms;
namespace HL_FristAidPlatform_DynamicElectrocardiogram
{
/// <summary>
/// 应用程序的主入口点
/// </summary>
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
//DevExpress.Skins.SkinManager.EnableFormSkins();
//DevExpress.UserSkins.BonusSkins.Register();
//取消重复打开软件判断,减少系统首次加载时间
//int count = 0;
//Process[] myProcess = Process.GetProcesses();
//foreach (Process _Process in myProcess)
//{
// if (_Process.ProcessName == Process.GetCurrentProcess().ProcessName)
// {
// count++;
// }
//}
//if (count > 1)
//{
// XtraMessageBox.Show("请勿重复打开软件!", "操作提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
//}
//else
//{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Form_ECGDW login = new Form_ECGDW();
if (login.ShowDialog() == DialogResult.OK)
{
Application.Run(new Form_ECGDW());
}
}
}
}