private string DataSourcePrompt(string connectionString)
{
try
{
Connection connection1 = null;
DataLinks dataLinks1 = new DataLinksClass();
if (connectionString == string.Empty)
{
connection1 = (Connection) dataLinks1.PromptNew();
return connection1.ConnectionString.ToString();
}
connection1 = new ConnectionClass();
connection1.ConnectionString = connectionString;
object object1 = connection1;
if (dataLinks1.PromptEdit(ref object1))
{
connectionString = connection1.ConnectionString;
}
connectionString = connectionString;
}
catch (
Exception exception1)
{
Debug.WriteLine(exception1.ToString());
connectionString = string.Empty;
}
return connectionString;
}