Пример #1
0
        static void Main()
        {
            // Subscribe to thread (unhandled) exception events
            AppExceptionHandler handler = new AppExceptionHandler();

            Application.ThreadException +=new ThreadExceptionEventHandler(handler.ApplicationException);
           
            logger.Info("Apllication Start");
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm());
        }
Пример #2
0
        static void Main()
        {
            // Subscribe to thread (unhandled) exception events
            AppExceptionHandler handler = new AppExceptionHandler();

            Application.ThreadException += new ThreadExceptionEventHandler(handler.ApplicationException);

            logger.Info("Apllication Start");
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm());
        }