示例#1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
     AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
     try
     {
         app = new ServerDBFXMain();
         Application.Run(app);
     }
     catch (Exception ex)
     {
         TradeLink.AppKit.CrashReport.Report(ServerDBFXMain.PROGRAM, string.Empty, string.Empty, string.Empty, ex, null, true);
     }
 }
示例#2
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
     AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
     try
     {
         app = new ServerDBFXMain();
         Application.Run(app);
     }
     catch (Exception ex)
     {
         TradeLink.AppKit.CrashReport.Report(ServerDBFXMain.PROGRAM,string.Empty,string.Empty,string.Empty,ex,null,true);
     }
 }