private void cmdViewHistory_Click(object sender, EventArgs e) { string connectionString = SqlServers.BuildConnectionString(optConnectionIntegratedSecurity.Checked, cboConnectionDatabaseName.Text, cboConnectionServerName.Text, txtConnectionUserName.Text, txtConnectionPassword.Text); if (!SqlServers.TestConnectionString(connectionString)) { MessageBox.Show("The information does not describe a valid connection string.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } HistoryForm F = new HistoryForm(connectionString); F.Show(); }