示例#1
0
文件: Program.cs 项目: xyz37/Kats
        static int Main()
        {
            if (GS.Common.Utility.Utilities.ExistInProcess("K-Packet 통합 관리 시스템") == true)
            {
                return(-99);
            }

            Log = LogLevelManager.GetInstance(ConfigurationManager.AppSettings["logLevelPath"]);
            Log.InsertDateTime = true;
            Log.MakeDateFolder = true;

            AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhadledException;
            Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
            Application.ThreadException += Application_ThreadException;

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            AppSettingsHelper.Initialize(CONFIG_SECTION_NAME, CONFIG_FILENAME);

            //if (CheckConfig() == true)
            {
                Application.Run(new MainForm());
            }

            return(0);
        }