Ejemplo n.º 1
0
 static void Main()
 {
     Application.ThreadException += ApplicationOnThreadException;
     AppDomain.CurrentDomain.UnhandledException += CurrentDomainOnUnhandledException;
     Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
     LogList = new List<string>();
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.ApplicationExit += ApplicationOnApplicationExit;
     var frm = new frmLog();
     Application.Run(new frmLog());
 }
Ejemplo n.º 2
0
        static void Main()
        {
            Application.ThreadException += ApplicationOnThreadException;
            AppDomain.CurrentDomain.UnhandledException += CurrentDomainOnUnhandledException;
            Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
            LogList = new List <string>();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.ApplicationExit += ApplicationOnApplicationExit;
            var frm = new frmLog();

            Application.Run(new frmLog());
        }