first commit
This commit is contained in:
31
SSG_Coder/Program.cs
Normal file
31
SSG_Coder/Program.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace SSG_Coder
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// 해당 애플리케이션의 주 진입점입니다.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
System.Diagnostics.Process[] processes = null;
|
||||
string processName = System.Diagnostics.Process.GetCurrentProcess().ProcessName.ToUpper();
|
||||
processes = System.Diagnostics.Process.GetProcessesByName(processName);
|
||||
if (processes.Length > 1)
|
||||
{
|
||||
MessageBox.Show("프로그램이 이미 실행중입니다.");
|
||||
return;
|
||||
}
|
||||
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new MainForm());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user