ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/AnywhereTS-MSSQL/trunk/TSAdminTool/frmConfigMode.cs
(Generate patch)

Comparing trunk/TSAdminTool/frmConfigMode.cs (file contents):
Revision 122 by william, Thu Jul 12 18:56:31 2012 UTC vs.
Revision 123 by william, Sat Jul 14 11:14:09 2012 UTC

# Line 24 | Line 24 | namespace AnywhereTS
24              if (ATSGlobals.configured == 0)
25              {  // ATS not configured yet
26                  radManagedMode.Checked = true;
27 <                txtDatabasePath.Text = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + @"\AnywhereTS";
27 >                //txtDatabasePath.Text = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + @"\AnywhereTS";
28                  txtDestinationDir.Text = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\AnywhereTS";
29              }
30              else
31              {   // ATS already configured
32 <                txtDatabasePath.Text = ProSupport.strDatabasePath;
32 >                //txtDatabasePath.Text = ProSupport.strDatabasePath;
33                  txtDestinationDir.Text = ProSupport.strDestDir;
34                  txtDatabasePath.Enabled = false;
35                  btnBrowseDatabase.Enabled = false;
# Line 81 | Line 81 | namespace AnywhereTS
81                      return;
82                  }
83  
84 <                // Save the database directory to registry
85 <                ProSupport.strDatabasePath = txtDatabasePath.Text.Trim();
86 <                ATSGlobals.SetATSRegValue(ProSupport.strRegDatabaseDir, ProSupport.strDatabasePath);
84 >                //// Save the database directory to registry
85 >                //ProSupport.strDatabasePath = txtDatabasePath.Text.Trim();
86 >                //ATSGlobals.SetATSRegValue(ProSupport.strRegDatabaseDir, ProSupport.strDatabasePath);
87  
88                  // Set up database
89                  dataSupport = new DatabaseSupport();
# Line 138 | Line 138 | namespace AnywhereTS
138                  return;
139  
140              }
141 <            // Save the database directory to registry
142 <            ProSupport.strDatabasePath = txtDatabasePath.Text.Trim();
143 <            ATSGlobals.SetATSRegValue(ProSupport.strRegDatabaseDir, ProSupport.strDatabasePath);
141 >            //// Save the database directory to registry
142 >            //ProSupport.strDatabasePath = txtDatabasePath.Text.Trim();
143 >            //ATSGlobals.SetATSRegValue(ProSupport.strRegDatabaseDir, ProSupport.strDatabasePath);
144  
145              // Save mode
146              ATSGlobals.SetATSRegValue(ATSGlobals.strRegManagedMode, ATSGlobals.managedMode);
# Line 177 | Line 177 | namespace AnywhereTS
177          {
178              if (radManagedMode.Checked)
179              {   // Managed mode
180 <                lblDatabasePath.Enabled = true;
181 <                txtDatabasePath.Enabled = true;
182 <                btnBrowseDatabase.Enabled = true;
180 >                //lblDatabasePath.Enabled = true;
181 >                //txtDatabasePath.Enabled = true;
182 >                //btnBrowseDatabase.Enabled = true;
183                  lblDestinationDir.Enabled = false;
184                  txtDestinationDir.Enabled = false;
185                  btnBrowseDestinationDir.Enabled = false;
# Line 187 | Line 187 | namespace AnywhereTS
187              }
188              else
189              {   // Unmanaged mode
190 <                lblDatabasePath.Enabled = false;
191 <                txtDatabasePath.Enabled = false;
192 <                btnBrowseDatabase.Enabled = false;
190 >                //lblDatabasePath.Enabled = false;
191 >                //txtDatabasePath.Enabled = false;
192 >                //btnBrowseDatabase.Enabled = false;
193                  lblDestinationDir.Enabled = true;
194                  txtDestinationDir.Enabled = true;
195                  btnBrowseDestinationDir.Enabled = true;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines