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

Diff of /trunk/TSAdminTool/frmConfigMode.cs

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

--- trunk/TSAdminTool/frmConfigMode.cs	2012/07/14 11:09:02	122
+++ trunk/TSAdminTool/frmConfigMode.cs	2012/07/14 11:14:09	123
@@ -24,12 +24,12 @@
             if (ATSGlobals.configured == 0)
             {  // ATS not configured yet
                 radManagedMode.Checked = true;
-                txtDatabasePath.Text = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + @"\AnywhereTS";
+                //txtDatabasePath.Text = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + @"\AnywhereTS";
                 txtDestinationDir.Text = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\AnywhereTS";
             }
             else 
             {   // ATS already configured
-                txtDatabasePath.Text = ProSupport.strDatabasePath;
+                //txtDatabasePath.Text = ProSupport.strDatabasePath;
                 txtDestinationDir.Text = ProSupport.strDestDir;
                 txtDatabasePath.Enabled = false;
                 btnBrowseDatabase.Enabled = false;
@@ -81,9 +81,9 @@
                     return;
                 }
 
-                // Save the database directory to registry
-                ProSupport.strDatabasePath = txtDatabasePath.Text.Trim();
-                ATSGlobals.SetATSRegValue(ProSupport.strRegDatabaseDir, ProSupport.strDatabasePath);
+                //// Save the database directory to registry
+                //ProSupport.strDatabasePath = txtDatabasePath.Text.Trim();
+                //ATSGlobals.SetATSRegValue(ProSupport.strRegDatabaseDir, ProSupport.strDatabasePath);
 
                 // Set up database
                 dataSupport = new DatabaseSupport();
@@ -138,9 +138,9 @@
                 return;
 
             }
-            // Save the database directory to registry
-            ProSupport.strDatabasePath = txtDatabasePath.Text.Trim();
-            ATSGlobals.SetATSRegValue(ProSupport.strRegDatabaseDir, ProSupport.strDatabasePath);
+            //// Save the database directory to registry
+            //ProSupport.strDatabasePath = txtDatabasePath.Text.Trim();
+            //ATSGlobals.SetATSRegValue(ProSupport.strRegDatabaseDir, ProSupport.strDatabasePath);
 
             // Save mode
             ATSGlobals.SetATSRegValue(ATSGlobals.strRegManagedMode, ATSGlobals.managedMode);
@@ -177,9 +177,9 @@
         {
             if (radManagedMode.Checked)
             {   // Managed mode
-                lblDatabasePath.Enabled = true;
-                txtDatabasePath.Enabled = true;
-                btnBrowseDatabase.Enabled = true;
+                //lblDatabasePath.Enabled = true;
+                //txtDatabasePath.Enabled = true;
+                //btnBrowseDatabase.Enabled = true;
                 lblDestinationDir.Enabled = false;
                 txtDestinationDir.Enabled = false;
                 btnBrowseDestinationDir.Enabled = false;
@@ -187,9 +187,9 @@
             }
             else
             {   // Unmanaged mode
-                lblDatabasePath.Enabled = false;
-                txtDatabasePath.Enabled = false;
-                btnBrowseDatabase.Enabled = false;
+                //lblDatabasePath.Enabled = false;
+                //txtDatabasePath.Enabled = false;
+                //btnBrowseDatabase.Enabled = false;
                 lblDestinationDir.Enabled = true;
                 txtDestinationDir.Enabled = true;
                 btnBrowseDestinationDir.Enabled = true;

 

  ViewVC Help
Powered by ViewVC 1.1.22