spc-kiosk-pb/Window/PosMain/Program.cs
2019-06-16 14:12:09 +09:00

36 lines
956 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Diagnostics;
namespace Cosmos.Win
{
static class Program
{
/// <summary>
/// 해당 응용 프로그램의 주 진입점입니다.
/// </summary>
[STAThread]
static void Main()
{
string sProcessName = System.Reflection.Assembly.GetExecutingAssembly().GetName().Name;
Process[] arProcess = Process.GetProcessesByName(sProcessName);
if (arProcess.Length > 1)
{
MessageBox.Show("Already Execute Porgram");
Application.Exit();
return;
}
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new frmPosMainStart());
//Application.Run(new frmPosMain());
}
}
}