ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/AnywhereTS-MSSQL/trunk/TSControlPanel/Program.cs
(Generate patch)

Comparing trunk/TSControlPanel/Program.cs (file contents):
Revision 93 by william, Thu Jul 12 22:00:37 2012 UTC vs.
Revision 94 by william, Sat Jul 14 02:52:23 2012 UTC

# Line 16 | Line 16 | namespace AnywhereTS
16          [STAThread]
17          static void Main()
18          {
19 <            AppDomain currentDomain = AppDomain.CurrentDomain;
20 <            currentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
21 <            Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException, true);
19 >            using (log4net.NDC.Push("Code executed from TSControlPanel.exe"))
20 >            {
21 >                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);
25 >                Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
26  
27 <            Application.EnableVisualStyles();
28 <            Application.SetCompatibleTextRenderingDefault(false);
27 >                Application.EnableVisualStyles();
28 >                Application.SetCompatibleTextRenderingDefault(false);
29  
30 <            frmClientProperties objCustomDialogBox = new frmClientProperties();
31 <            objCustomDialogBox.dialogMode = frmClientProperties.ATSClientMode.CONTROL_PANEL; // Select the mode to run the form in.
32 <            Application.Run(objCustomDialogBox);            
30 >                frmClientProperties objCustomDialogBox = new frmClientProperties();
31 >                objCustomDialogBox.dialogMode = frmClientProperties.ATSClientMode.CONTROL_PANEL; // Select the mode to run the form in.
32 >                Application.Run(objCustomDialogBox);
33 >            }
34          }
35  
36          static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines