Exemplo n.º 1
0
        public static void Main()
        {
            // http://stackoverflow.com/a/10203030
            AppDomain currentDomain = default(AppDomain);
            currentDomain = AppDomain.CurrentDomain;
            // Handler for unhandled exceptions.
            currentDomain.UnhandledException += GlobalUnhandledExceptionHandler;
            // Handler for exceptions in threads behind forms.
            System.Windows.Forms.Application.ThreadException += GlobalThreadExceptionHandler;

            AttachmentMailer.App app = new AttachmentMailer.App();
            app.InitializeComponent();
            app.Run();
        }