1234567891011121314151617181920212223242526272829303132333435363738 |
- using System;
- using System.Collections.Generic;
- //using System.Linq;
- using System.Windows.Forms;
- using System.Threading;
- namespace IControls_FireManager
- {
- static class Program
- {
- /// <summary>
- /// 해당 응용 프로그램의 주 진입점입니다.
- /// </summary>
- [STAThread]
- static void Main()
- {
- try
- {
- bool createdNew;
- Mutex dup = new Mutex(true, "IControls_EmergencyRepeater", out createdNew);
- // 프로그램 뮤텍스
- if (createdNew)
- {
- Application.EnableVisualStyles();
- Application.SetCompatibleTextRenderingDefault(false);
- Application.Run(new EmergencyRepeater());
- }
- else
- MessageBox.Show("이미 프로그램이 사용중입니다");
- }
- catch
- {
- ; // 프로세스가 강제로 종료될때 예외가 발생할 수 있다.
- }
- }
- }
- }
|