Esempio n. 1
0
        static GuiTestHelper()
        {
            //DelftTools.Controls.Swf.MessageBox.CustomMessageBox = new GuiTestHelper.LoggingMessageBox();

            System.Windows.Forms.Control.CheckForIllegalCrossThreadCalls = true;
            System.Windows.Forms.Application.EnableVisualStyles();
            
            InitializeSynchronizatonObject();
            Dispatcher.CurrentDispatcher.UnhandledException += CurrentDispatcher_UnhandledException;
            AppDomain.CurrentDomain.UnhandledException += AppDomain_UnhandledException;
            Application.ThreadException += Application_ThreadException;

            if (UseResourceMonitor && resourceMonitor == null)
            {
                resourceMonitor = new ResourceMonitor();
                resourceMonitor.Show();
            }
        }