/[AnywhereTS-MSSQL]/trunk/TSAdminTool/frmAdmin.cs
ViewVC logotype

Diff of /trunk/TSAdminTool/frmAdmin.cs

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

--- trunk/TSAdminTool/frmAdmin.cs	2012/07/14 02:35:50	93
+++ trunk/TSAdminTool/frmAdmin.cs	2012/07/14 02:52:23	94
@@ -24,13 +24,15 @@
         private string selectedClientMacAddress; // The MAC address of the currently selected client.
         public frmAdmin()
         {
-            InitializeComponent();            
+            Logging.ATSAdminLog.Debug("Entering frmAdmin .ctor()");
+            InitializeComponent();
+            Logging.ATSAdminLog.Debug("Leaving frmAdmin .ctor()");
         }  
 
         private void frmAdmin_Load(object sender, EventArgs e)
         {            
             //this.Cursor = Cursors.WaitCursor;
-
+            Logging.ATSAdminLog.Debug("Entering frmAdmin_Load()");
             UpdateControlsToReflectProgramVersion();
 
             // Check if AnywhereTS is configured
@@ -58,10 +60,12 @@
             ATSImageDesigntimeConfig newConfig = new ATSImageDesigntimeConfig();
             newConfig.ReadDefaultFromDatabase();
             newConfig.WriteDefaultsToDatabase();
+            Logging.ATSAdminLog.Debug("Leaving frmAdmin_Load()");
         } // form load
 
         private void UpdateControlsToReflectProgramVersion()
         {
+            Logging.ATSAdminLog.Debug("Entering UpdateControlsToReflectProgramVersion()");
             // Update the application to reflect the type of license and release
             ATSGlobals.isPro = true;
             Globals.isPro = ATSGlobals.isPro; // Update program status for the VB part of the application.
@@ -70,6 +74,7 @@
 
             this.Text = ATSGlobals.ApplicationTitle; // Set name in window title
             aboutToolStripMenuItem.Text = "About " + ATSGlobals.ApplicationTitle;
+            Logging.ATSAdminLog.Debug("Leaving UpdateControlsToReflectProgramVersion()");
         }
 
         // Update database from terminal server sessions
@@ -747,7 +752,7 @@
         // Run first time starting ATS and can also be invoked from the Tools menu.        
         private bool ConfigureATS()
         {
-
+            Logging.ATSAdminLog.Debug("Entering ConfigureATS()");
             DialogResult result;
 
             if (!ProSupport.IsAnAdministrator())
@@ -840,11 +845,13 @@
             // Configuration completed
             ATSGlobals.configured = 1; // Indicate that configuration process is completed
             ATSGlobals.SetATSRegValue(ATSGlobals.strRegConfigured, ATSGlobals.configured); // Save to registry
+            Logging.ATSAdminLog.Debug("Leaving ConfigureATS()");
             return true;
         }
 
         void SetMode()
         {
+            Logging.ATSAdminLog.Debug("Entering SetMode()");
             if (ATSGlobals.managedMode == 1)
             { // We are running in managed mode, enable all controls related to client administration. 
                 lblClientProperties.Enabled = true;
@@ -936,6 +943,7 @@
                     Logging.ATSAdminLog.Error("Error, no mode selected (56541)");
                 }
             }
+            Logging.ATSAdminLog.Debug("Leaving SetMode()");
         }
 
         private void frmAdmin_Resize(object sender, EventArgs e)
@@ -972,6 +980,7 @@
         // Saves the computer name of the current computer, being the one running the admin tool into the database
         private void SaveMachineNameToDatabase()
         {
+            Logging.ATSAdminLog.Debug("Entering SaveMachineNameToDatabase()");
             string machineName = Environment.MachineName;
             atsDataSet datasetAppInfo;
             DataRow row;
@@ -997,6 +1006,7 @@
             }
             // Save changes
             ProSupport.appInfoTableAdapter.Update(datasetAppInfo.AppInfo);
+            Logging.ATSAdminLog.Debug("Leaving SaveMachineNameToDatabase()");
         }
 
     } // FrmAdmin

 

  ViewVC Help
Powered by ViewVC 1.1.22