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 = "DatabaseServer"; // Reg key for database server |
public const string strRegDatabaseServer = "AnywhereTSServer"; // Reg key for database server |
31 |
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.. |
32 |
|
|
33 |
// Database constants |
// Database constants |
39 |
public static atsDataSetTableAdapters.TerminalServerTableAdapter terminalServerTableAdapter; // The AnywhereTS application data adapter for the terminal servers table. Only this adapter should be used. |
public static atsDataSetTableAdapters.TerminalServerTableAdapter terminalServerTableAdapter; // The AnywhereTS application data adapter for the terminal servers table. Only this adapter should be used. |
40 |
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. |
41 |
|
|
42 |
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 |
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 |
43 |
|
|
44 |
// Directories |
// Directories |
45 |
public static string strDatabasePath; // The directory where the database file is located. |
public static string strDatabasePath; // The directory where the database file is located. |
51 |
// Initiate variables from registry |
// Initiate variables from registry |
52 |
strDatabasePath = ATSGlobals.GetATSRegValueString(strRegDatabaseDir); |
strDatabasePath = ATSGlobals.GetATSRegValueString(strRegDatabaseDir); |
53 |
strDestDir = ATSGlobals.GetATSRegValueString(strRegDestDir); |
strDestDir = ATSGlobals.GetATSRegValueString(strRegDestDir); |
54 |
strDatabaseServer = ATSGlobals.GetATSRegValueString(strRegDatabaseServer); |
strAnywhereTSServer = ATSGlobals.GetATSRegValueString(strRegDatabaseServer); |
55 |
} |
} |
56 |
|
|
57 |
// Loook up local IP for computer |
// Loook up local IP for computer |