/[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

revision 91 by william, Sat Jul 14 00:36:23 2012 UTC revision 92 by william, Sat Jul 14 00:55:41 2012 UTC
# Line 25  namespace AnywhereTS Line 25  namespace AnywhereTS
25              //Create a connection to SQL Server              //Create a connection to SQL Server
26              Exception ErrorInfo = null;              Exception ErrorInfo = null;
27              Logging.ATSAdminLog.Debug("frmConfigureControlPanel.btnOk_Click() called ");              Logging.ATSAdminLog.Debug("frmConfigureControlPanel.btnOk_Click() called ");
28              using (MsSqlConnector conn = new MsSqlConnector(Properties.Settings.Default.DBServer, Properties.Settings.Default.DBInstance, "master"))              using (MsSqlConnector conn = new MsSqlConnector(ProSupport.strDatabaseServer, ProSupport.strDatabaseInstance, "master"))
29              {              {
30                  try                  try
31                  {                  {
# Line 58  namespace AnywhereTS Line 58  namespace AnywhereTS
58              if (ErrorInfo != null) { MessageBox.Show(string.Format("Failed to open database {0}. Please check the log for errors.", ATSGlobals.strDatabaseName)); }              if (ErrorInfo != null) { MessageBox.Show(string.Format("Failed to open database {0}. Please check the log for errors.", ATSGlobals.strDatabaseName)); }
59              // Save database server to variable and registry              // Save database server to variable and registry
60              ProSupport.strAnywhereTSServer = textInput.Text;              ProSupport.strAnywhereTSServer = textInput.Text;
61              ATSGlobals.SetATSRegValue(ProSupport.strRegDatabaseServer, ProSupport.strAnywhereTSServer);              ATSGlobals.SetATSRegValue(ProSupport.strRegAnywhereTSServer, ProSupport.strAnywhereTSServer);
62              DialogResult = DialogResult.OK; //return              DialogResult = DialogResult.OK; //return
63          }          }
64      }      }

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

  ViewVC Help
Powered by ViewVC 1.1.22