Skip to content

Commit 8e4816f

Browse files
committed
Update Form_Main.cs
1 parent 45d8c21 commit 8e4816f

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

Virtual_EDW/Form_Main.cs

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ public FormMain()
104104
VdwConfigurationSettings.TemplatePath = VdwConfigurationSettings.ActiveEnvironment.templatePath;
105105
textBoxTemplatePath.Text = VdwConfigurationSettings.TemplatePath;
106106

107-
108107
// Load the configuration and connection information from file, based on the selected environment and input path.
109108
VdwUtility.LoadTeamConnectionsFileForVdw(VdwConfigurationSettings.ActiveEnvironment.environmentKey);
110109
VdwUtility.LoadTeamConfigurationFileForVdw(VdwConfigurationSettings.ActiveEnvironment.environmentKey);
@@ -1473,26 +1472,26 @@ private void comboBoxEnvironments_SelectedIndexChanged(object sender, EventArgs
14731472
VdwConfigurationSettings.TeamSelectedEnvironmentInternalId = selectedEnvironment.Value.environmentInternalId;
14741473
VdwConfigurationSettings.ActiveEnvironment = selectedEnvironment.Value;
14751474

1476-
if (startUpIndicator != true)
1477-
{
1478-
// Reload the configuration and connections file associated with this new environment.
1479-
VdwUtility.LoadTeamConnectionsFileForVdw(VdwConfigurationSettings.ActiveEnvironment.environmentKey);
1480-
VdwUtility.LoadTeamConfigurationFileForVdw(VdwConfigurationSettings.ActiveEnvironment.environmentKey);
1481-
1482-
richTextBoxInformationMain.AppendText($"The '{VdwConfigurationSettings.ActiveEnvironment.environmentKey}' environment is now active.\r\n");
1483-
}
1484-
14851475
// Set any screen controls with the correct value.
14861476
textBoxTeamConfigurationPath.Text = VdwConfigurationSettings.ActiveEnvironment.configurationPath;
14871477
textBoxMetadataPath.Text = VdwConfigurationSettings.ActiveEnvironment.metadataPath;
14881478
textBoxOutputPath.Text = VdwConfigurationSettings.ActiveEnvironment.outputPath;
14891479
textBoxTemplatePath.Text = VdwConfigurationSettings.ActiveEnvironment.templatePath;
14901480

14911481
VdwConfigurationSettings.TeamConfigurationPath = VdwConfigurationSettings.ActiveEnvironment.configurationPath;
1482+
VdwConfigurationSettings.TeamConnectionsPath = VdwConfigurationSettings.ActiveEnvironment.configurationPath;
14921483
VdwConfigurationSettings.VdwMetadatPath = VdwConfigurationSettings.ActiveEnvironment.metadataPath;
14931484
VdwConfigurationSettings.TemplatePath = VdwConfigurationSettings.ActiveEnvironment.templatePath;
14941485
VdwConfigurationSettings.VdwOutputPath = VdwConfigurationSettings.ActiveEnvironment.outputPath;
14951486

1487+
if (startUpIndicator != true)
1488+
{
1489+
// Reload the configuration and connections file associated with this new environment.
1490+
VdwUtility.LoadTeamConnectionsFileForVdw(VdwConfigurationSettings.ActiveEnvironment.environmentKey);
1491+
VdwUtility.LoadTeamConfigurationFileForVdw(VdwConfigurationSettings.ActiveEnvironment.environmentKey);
1492+
1493+
richTextBoxInformationMain.AppendText($"The '{VdwConfigurationSettings.ActiveEnvironment.environmentKey}' environment is now active.\r\n");
1494+
}
14961495
// Ensure the template overview is updated.
14971496
RefreshTemplateGrid();
14981497
}

0 commit comments

Comments
 (0)