Example #1
0
        private static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);


            ProgramData programdata = new ProgramData();

            Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(ExceptionClass.UIException);
            AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(ExceptionClass.BGException);


            ProgramData progdat = new ProgramData();

            new MAIN(progdat);
            try{
                Application.Run(new launcher(progdat));
            }catch (Exception e) { ExceptionClass.ExceptReporter(e); }
        }