public void ChangeEnvironmentName(string oldEnvName, string newEnvName) { if (EnvExists(oldEnvName)) { Environments[Environments.IndexOf(oldEnvName)] = newEnvName; } }