private void btnBrowseForDataExport_Click(object sender, EventArgs e) { var dialog = new ServerDatabaseTableSelectorDialog("Data Export Database", false, false); dialog.LockDatabaseType(DatabaseType.MicrosoftSQLServer); if (dialog.ShowDialog() == DialogResult.OK) { tbDataExportManagerConnectionString.Text = dialog.SelectedDatabase.Server.Builder.ConnectionString; } }
private void btnBrowseForCatalogue_Click(object sender, EventArgs e) { var dialog = new ServerDatabaseTableSelectorDialog("Catalogue Database", false, false, null); dialog.LockDatabaseType(DatabaseType.MicrosoftSQLServer); if (dialog.ShowDialog() == DialogResult.OK && dialog.SelectedDatabase != null) { tbCatalogueConnectionString.Text = dialog.SelectedDatabase.Server.Builder.ConnectionString; } }
public override DiscoveredTable SelectTable(bool allowDatabaseCreation, string taskDescription) { var dialog = new ServerDatabaseTableSelectorDialog(taskDescription, true, true); dialog.ShowDialog(); if (dialog.DialogResult != DialogResult.OK) { return(null); } return(dialog.SelectedTable); }
protected DiscoveredDatabase SelectDatabase(string taskDescription) { var dialog = new ServerDatabaseTableSelectorDialog(taskDescription, false, false); dialog.ShowDialog(); if (dialog.DialogResult != DialogResult.OK) { return(null); } return(dialog.SelectedDatabase); }