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

Comparing trunk/TSAdminTool/frmAdmin.cs (file contents):
Revision 93 by william, Thu Jul 12 18:56:31 2012 UTC vs.
Revision 94 by william, Sat Jul 14 02:52:23 2012 UTC

# Line 24 | Line 24 | namespace AnywhereTS
24          private string selectedClientMacAddress; // The MAC address of the currently selected client.
25          public frmAdmin()
26          {
27 <            InitializeComponent();            
27 >            Logging.ATSAdminLog.Debug("Entering frmAdmin .ctor()");
28 >            InitializeComponent();
29 >            Logging.ATSAdminLog.Debug("Leaving frmAdmin .ctor()");
30          }  
31  
32          private void frmAdmin_Load(object sender, EventArgs e)
33          {            
34              //this.Cursor = Cursors.WaitCursor;
35 <
35 >            Logging.ATSAdminLog.Debug("Entering frmAdmin_Load()");
36              UpdateControlsToReflectProgramVersion();
37  
38              // Check if AnywhereTS is configured
# Line 58 | Line 60 | namespace AnywhereTS
60              ATSImageDesigntimeConfig newConfig = new ATSImageDesigntimeConfig();
61              newConfig.ReadDefaultFromDatabase();
62              newConfig.WriteDefaultsToDatabase();
63 +            Logging.ATSAdminLog.Debug("Leaving frmAdmin_Load()");
64          } // form load
65  
66          private void UpdateControlsToReflectProgramVersion()
67          {
68 +            Logging.ATSAdminLog.Debug("Entering UpdateControlsToReflectProgramVersion()");
69              // Update the application to reflect the type of license and release
70              ATSGlobals.isPro = true;
71              Globals.isPro = ATSGlobals.isPro; // Update program status for the VB part of the application.
# Line 70 | Line 74 | namespace AnywhereTS
74  
75              this.Text = ATSGlobals.ApplicationTitle; // Set name in window title
76              aboutToolStripMenuItem.Text = "About " + ATSGlobals.ApplicationTitle;
77 +            Logging.ATSAdminLog.Debug("Leaving UpdateControlsToReflectProgramVersion()");
78          }
79  
80          // Update database from terminal server sessions
# Line 747 | Line 752 | namespace AnywhereTS
752          // Run first time starting ATS and can also be invoked from the Tools menu.        
753          private bool ConfigureATS()
754          {
755 <
755 >            Logging.ATSAdminLog.Debug("Entering ConfigureATS()");
756              DialogResult result;
757  
758              if (!ProSupport.IsAnAdministrator())
# Line 840 | Line 845 | DisplayConfig: // Config services
845              // Configuration completed
846              ATSGlobals.configured = 1; // Indicate that configuration process is completed
847              ATSGlobals.SetATSRegValue(ATSGlobals.strRegConfigured, ATSGlobals.configured); // Save to registry
848 +            Logging.ATSAdminLog.Debug("Leaving ConfigureATS()");
849              return true;
850          }
851  
852          void SetMode()
853          {
854 +            Logging.ATSAdminLog.Debug("Entering SetMode()");
855              if (ATSGlobals.managedMode == 1)
856              { // We are running in managed mode, enable all controls related to client administration.
857                  lblClientProperties.Enabled = true;
# Line 936 | Line 943 | If you want to register more terminal se
943                      Logging.ATSAdminLog.Error("Error, no mode selected (56541)");
944                  }
945              }
946 +            Logging.ATSAdminLog.Debug("Leaving SetMode()");
947          }
948  
949          private void frmAdmin_Resize(object sender, EventArgs e)
# Line 972 | Line 980 | If you want to register more terminal se
980          // Saves the computer name of the current computer, being the one running the admin tool into the database
981          private void SaveMachineNameToDatabase()
982          {
983 +            Logging.ATSAdminLog.Debug("Entering SaveMachineNameToDatabase()");
984              string machineName = Environment.MachineName;
985              atsDataSet datasetAppInfo;
986              DataRow row;
# Line 997 | Line 1006 | If you want to register more terminal se
1006              }
1007              // Save changes
1008              ProSupport.appInfoTableAdapter.Update(datasetAppInfo.AppInfo);
1009 +            Logging.ATSAdminLog.Debug("Leaving SaveMachineNameToDatabase()");
1010          }
1011  
1012      } // FrmAdmin

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines