private void dbBrowseButton_Click(object sender, EventArgs e) { ServerConnection sc = GetConnection(); if (sc == null) { return; } PickDatabaseForm dial = new PickDatabaseForm(sc); if (dial.ShowDialog() == DialogResult.OK) { dbTextBox.Text = dial.Database.Name; } dial.Dispose(); sc.Disconnect(); }
private void dbBrowseButton_Click(object sender, EventArgs e) { ServerConnection sc = GetConnection(); if (sc==null) return; PickDatabaseForm dial = new PickDatabaseForm(sc); if (dial.ShowDialog() == DialogResult.OK) dbTextBox.Text = dial.Database.Name; dial.Dispose(); sc.Disconnect(); }