Exemple #1
0
        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;
            }
        }
Exemple #2
0
        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;
            }
        }
Exemple #3
0
        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);
        }
Exemple #4
0
        protected DiscoveredDatabase SelectDatabase(string taskDescription)
        {
            var dialog = new ServerDatabaseTableSelectorDialog(taskDescription, false, false);

            dialog.ShowDialog();

            if (dialog.DialogResult != DialogResult.OK)
            {
                return(null);
            }

            return(dialog.SelectedDatabase);
        }