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; |
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(); |
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); |
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; |
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; |