Esempio n. 1
0
        static void Main()
        {
            // Add handler to handle the exception raised by main threads
            Application.ThreadException +=
                new ThreadExceptionEventHandler(Application_ThreadException);

            // Add handler to handle the exception raised by additional threads
            AppDomain.CurrentDomain.UnhandledException +=
                new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm(AssetManagerFactory.GetAssetManager()));
        }