/[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 73 by william, Thu Jul 12 22:00:37 2012 UTC revision 94 by william, Sat Jul 14 02:52:23 2012 UTC
# Line 16  namespace AnywhereTS Line 16  namespace AnywhereTS
16          [STAThread]          [STAThread]
17          static void Main()          static void Main()
18          {          {
19              AppDomain currentDomain = AppDomain.CurrentDomain;              using (log4net.NDC.Push("Code executed from TSControlPanel.exe"))
20              currentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);              {
21              Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException, true);                  AppDomain currentDomain = AppDomain.CurrentDomain;
22                    currentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
23                    Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException, true);
24    
25              Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);                  Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
26    
27              Application.EnableVisualStyles();                  Application.EnableVisualStyles();
28              Application.SetCompatibleTextRenderingDefault(false);                  Application.SetCompatibleTextRenderingDefault(false);
29    
30              frmClientProperties objCustomDialogBox = new frmClientProperties();                  frmClientProperties objCustomDialogBox = new frmClientProperties();
31              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.
32              Application.Run(objCustomDialogBox);                              Application.Run(objCustomDialogBox);
33                }
34          }          }
35    
36          static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)          static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)

Legend:
Removed from v.73  
changed lines
  Added in v.94

  ViewVC Help
Powered by ViewVC 1.1.22