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

Diff of /trunk/TSAdminTool/ProSupport.cs

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

revision 91 by william, Sat Jul 14 00:36:23 2012 UTC revision 99 by william, Sat Jul 14 04:50:27 2012 UTC
# Line 17  using log4net; Line 17  using log4net;
17  namespace AnywhereTS  namespace AnywhereTS
18  {  {
19      public static class ProSupport      public static class ProSupport
20      {            {
21          // File names          // File names
22          public const string strHostsFilename = "hosts"; // The name of the thin clients host file.          public const string strHostsFilename = "hosts"; // The name of the thin clients host file.
23          public const string strNetworkConfigFilename = "network"; // Name of the Thinstation common config file in the TFTP root directory.          public const string strNetworkConfigFilename = "network"; // Name of the Thinstation common config file in the TFTP root directory.
# Line 27  namespace AnywhereTS Line 27  namespace AnywhereTS
27          // Registry keys          // Registry keys
28          public const string strRegTFTP_root = "TFTP_root"; // Reg key for TFTP root directory in database          public const string strRegTFTP_root = "TFTP_root"; // Reg key for TFTP root directory in database
29          public const string strRegDatabaseDir = "DatabaseDir"; // Reg key for database directory          public const string strRegDatabaseDir = "DatabaseDir"; // Reg key for database directory
30          public const string strRegDatabaseServer = "AnywhereTSServer"; // Reg key for database server          public const string strRegAnywhereTSServer = "ATSServer"; // Reg key for database server
31            public const string strRegDatabaseServer = "DatabaseServer"; // Reg key for database server
32            public const string strRegDatabaseInstance = "DatabaseInstance"; // Reg key for database server
33          public const string strRegDestDir = "DestDir"; // Reg key for Destination directory, used in unmanged mode..          public const string strRegDestDir = "DestDir"; // Reg key for Destination directory, used in unmanged mode..
34            
35          // Database constants          // Database constants
36          public const string DEFAULT_RECORD_MAC = "Default     "; // Phony MAC address (12 chars) used to identify the client record that contains the default settings for all new clients          public const string DEFAULT_RECORD_MAC = "Default     "; // Phony MAC address (12 chars) used to identify the client record that contains the default settings for all new clients
37    
# Line 40  namespace AnywhereTS Line 42  namespace AnywhereTS
42          public static atsDataSetTableAdapters.AppInfoTableAdapter appInfoTableAdapter; // The AnywhereTS application data adapter for the AppInfo table. Only this adapter should be used.          public static atsDataSetTableAdapters.AppInfoTableAdapter appInfoTableAdapter; // The AnywhereTS application data adapter for the AppInfo table. Only this adapter should be used.
43    
44          public static string strAnywhereTSServer; // If this computer does not contain the database server, this is the name of the database server that contains the ATS database. Used by the Control Panel          public static string strAnywhereTSServer; // If this computer does not contain the database server, this is the name of the database server that contains the ATS database. Used by the Control Panel
45                    public static string strDatabaseServer; // If this computer does not contain the database server, this is the name of the database server that contains the ATS database. Used by the Control Panel
46            public static string strDatabaseInstance; // If this computer does not contain the database server, this is the name of the database server that contains the ATS database. Used by the Control Panel
47    
48          // Directories          // Directories
49          public static string strDatabasePath; // The directory where the database file is located.          public static string strDatabasePath; // The directory where the database file is located.
50          public static string strDestDir; // Destination directory for client files in unmanaged mode.          public static string strDestDir; // Destination directory for client files in unmanaged mode.
51            
52          // Constructor Initializes the global variables          // Constructor Initializes the global variables
53          static ProSupport()          static ProSupport()
54          {          {
55              // Initiate variables from registry              Logging.Initialize();
56               //  Initiate variables from registry
57                strAnywhereTSServer = ATSGlobals.GetATSRegValueString(strRegAnywhereTSServer);
58              strDatabasePath = ATSGlobals.GetATSRegValueString(strRegDatabaseDir);              strDatabasePath = ATSGlobals.GetATSRegValueString(strRegDatabaseDir);
59              strDestDir = ATSGlobals.GetATSRegValueString(strRegDestDir);              strDestDir = ATSGlobals.GetATSRegValueString(strRegDestDir);
60              strAnywhereTSServer = ATSGlobals.GetATSRegValueString(strRegDatabaseServer);              strDatabaseServer = ATSGlobals.GetATSRegValueString(strRegDatabaseServer);
61                strDatabaseInstance = ATSGlobals.GetATSRegValueString(strRegDatabaseInstance);
62          }          }
63    
64          // Loook up local IP for computer          // Loook up local IP for computer

Legend:
Removed from v.91  
changed lines
  Added in v.99

  ViewVC Help
Powered by ViewVC 1.1.22