/[AnywhereTS-MSSQL]/trunk/TSControlPanel/Program.cs
ViewVC logotype

Diff of /trunk/TSControlPanel/Program.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 61 by william, Thu Jul 12 17:34:46 2012 UTC revision 65 by william, Thu Jul 12 19:07:58 2012 UTC
# Line 17  namespace AnywhereTS Line 17  namespace AnywhereTS
17              currentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);              currentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
18              Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException, true);              Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException, true);
19    
20                Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
21    
22              Application.EnableVisualStyles();              Application.EnableVisualStyles();
23              Application.SetCompatibleTextRenderingDefault(false);              Application.SetCompatibleTextRenderingDefault(false);
24    
# Line 24  namespace AnywhereTS Line 26  namespace AnywhereTS
26              objCustomDialogBox.dialogMode = frmClientProperties.ATSClientMode.CONTROL_PANEL; // Select the mode to run the form in.              objCustomDialogBox.dialogMode = frmClientProperties.ATSClientMode.CONTROL_PANEL; // Select the mode to run the form in.
27              Application.Run(objCustomDialogBox);                          Application.Run(objCustomDialogBox);            
28          }          }
29    
30            static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
31            {
32                CurrentDomain_UnhandledException(sender, new UnhandledExceptionEventArgs(e.Exception, false));
33            }
34          static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs args)          static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs args)
35          {          {
36              Exception e = (Exception)args.ExceptionObject;              Exception e = (Exception)args.ExceptionObject;

Legend:
Removed from v.61  
changed lines
  Added in v.65

  ViewVC Help
Powered by ViewVC 1.1.22