using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; using System.Threading; namespace IControls_FireManager { static class Program { /// /// 해당 응용 프로그램의 주 진입점입니다. /// [STAThread] static void Main() { //try //{ //// 수신기 UI 혹은 통신데몬이 사용중이라면 사용불가 //if (_Diagnostics.Process_Excute("FPER") == true || _Diagnostics.Process_Excute("CommDaemon") == true) //{ // _Popup.MessageBoxPopup(0, _Text.ProgramEtcNot, _Text.OK); //} //// IB Console 실행중에는 사용불가 //else if(_Diagnostics.Process_Excute("IBConsole") == true) //{ // _Popup.MessageBoxPopup(0, _Text.IBConsoleNot, _Text.OK); //} //// Fire Bird 가 실행하지 못하면 사용불가 if (_Diagnostics.Process_Excute("fbserver") == false || _Diagnostics.Process_Excute("fbguard") == false) { _Popup.MessageBoxPopup(0, _Text.FirebirdNot, _Text.OK); } else { // 파일 엑세스 if (_File.Read_ProgramConfiguration() == true) { bool createdNew; Mutex dup = new Mutex(true, "IControls_FireManager_Ver3", out createdNew); // 프로그램 뮤텍스 if (createdNew) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new IControls_FireManager()); dup.ReleaseMutex(); } else _Popup.MessageBoxPopup(0, _Text.ProgramCloseSame, _Text.OK); } else _Popup.MessageBoxPopup(0, _Text.GetDamagedConfigFile, _Text.OK); } //} //catch //{ //} } } }