천호석
2022-06-17 4de9ea98e13449174aa2cd09c8351fc0e978f44a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
 
namespace SHARP_CLAS_UI
{
    static class Program
    {
        /// <summary>
        /// 해당 응용 프로그램의 주 진입점입니다.
        /// </summary>
        [STAThread]
        static void Main()
        {
            bool createNew;
            System.Threading.Semaphore s = new System.Threading.Semaphore(1, 2, "SHARP_CLAS_UI", out createNew);
 
            if (createNew == false)
            {
                MessageBox.Show("이미 실행중입니다.", "SHARP_CLAS_UI", MessageBoxButtons.OK);
                return;
            }
 
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form_Frame());
        }
    }
}