/[AnywhereTS-MSSQL]/trunk/TSControlPanel/frmConfigureControlPanel.cs
ViewVC logotype

Diff of /trunk/TSControlPanel/frmConfigureControlPanel.cs

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

--- trunk/TSControlPanel/frmConfigureControlPanel.cs	2012/07/14 00:36:23	91
+++ trunk/TSControlPanel/frmConfigureControlPanel.cs	2012/07/14 00:55:41	92
@@ -25,7 +25,7 @@
             //Create a connection to SQL Server
             Exception ErrorInfo = null;
             Logging.ATSAdminLog.Debug("frmConfigureControlPanel.btnOk_Click() called ");
-            using (MsSqlConnector conn = new MsSqlConnector(Properties.Settings.Default.DBServer, Properties.Settings.Default.DBInstance, "master"))
+            using (MsSqlConnector conn = new MsSqlConnector(ProSupport.strDatabaseServer, ProSupport.strDatabaseInstance, "master"))
             {
                 try
                 {
@@ -58,7 +58,7 @@
             if (ErrorInfo != null) { MessageBox.Show(string.Format("Failed to open database {0}. Please check the log for errors.", ATSGlobals.strDatabaseName)); }
             // Save database server to variable and registry
             ProSupport.strAnywhereTSServer = textInput.Text;
-            ATSGlobals.SetATSRegValue(ProSupport.strRegDatabaseServer, ProSupport.strAnywhereTSServer);
+            ATSGlobals.SetATSRegValue(ProSupport.strRegAnywhereTSServer, ProSupport.strAnywhereTSServer);
             DialogResult = DialogResult.OK; //return
         }
     }

 

  ViewVC Help
Powered by ViewVC 1.1.22