예제 #1
0
 static void Main()
 {
     Updater.CheckUpdateSimple();
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
     Application.ThreadException += (ss, ee) => {
         LogClass.WriteLogFile("UnhandledException Catch:" + ee.Exception.Message + "\r\nSource:" + ee.Exception.Source + "\r\nException:" + ee.Exception.ToString());
     };
     DatasList.Init();
     Application.Run(new formLogin());
 }
예제 #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
            Updater.CheckUpdateSimple();
            Application.ThreadException += (ss, ee) => {
                new LogInfo().WriteLine(String.Format("UnhandledException Catch:{0}\r\nSource:{1}\r\nException:{2}", ee.Exception.Message, ee.Exception.Source, ee.Exception));
            };
            studio.InitializeUrl();
            if (!System.Reflection.Assembly.GetExecutingAssembly().IsDebugAssembly())
            {
                studio.InitializeErrorReport();
            }

            DatasList.Init();
            Application.Run(new FormLogin());
        }