private void buttonEditNewConnectionString_Click(object sender, EventArgs e) { ConnectDbForm ff = new ConnectDbForm(rtbSrcConnStr.Text); ff.ShowDialog(); if (ff.DialogResult == DialogResult.OK) { rtbSrcConnStr.Text = ff.ConnectionString; GlobalVariables.SourceConnection = new Database.MyAdoDbConnection(ff.Connection); } }
private void Connect() { ConnectDbForm f = new ConnectDbForm("SQLPlayer", "Data Script Writer"); f.ShowDialog(); if (f.DialogResult == DialogResult.OK) { _gen = new ScriptWriter(f.Db, _OutputFolder); _gen.OptionProcWrapUp = true; _gen.LoadListOfTables(); gridControl1.DataSource = _gen.TableList; bsiDatabaseName.Caption = _gen.DbName; } }