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()); }
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()); }