using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace SSG_Coder { static class Program { /// /// 해당 애플리케이션의 주 진입점입니다. /// [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()); } } }