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 |
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. |
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 |
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()) |
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; |
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) |
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; |
1006 |
|
} |
1007 |
|
// Save changes |
1008 |
|
ProSupport.appInfoTableAdapter.Update(datasetAppInfo.AppInfo); |
1009 |
+ |
Logging.ATSAdminLog.Debug("Leaving SaveMachineNameToDatabase()"); |
1010 |
|
} |
1011 |
|
|
1012 |
|
} // FrmAdmin |