/// <summary> /// Select a cache folder /// </summary> /// <param name="sender">The sender of the event</param> /// <param name="e">The event arguments</param> private void btnSetConnectionString_Click(object sender, EventArgs e) { using (SqlConnectionDlg dlg = new SqlConnectionDlg()) { if (txtConnectionString.Text.Trim().Length != 0) { dlg.ConnectionString = txtConnectionString.Text; } if (dlg.ShowDialog() == DialogResult.OK) { txtConnectionString.Text = dlg.ConnectionString; } } }
/// <summary> /// Select a cache folder /// </summary> /// <param name="sender">The sender of the event</param> /// <param name="e">The event arguments</param> private void btnSetConnectionString_Click(object sender, EventArgs e) { using(SqlConnectionDlg dlg = new SqlConnectionDlg()) { if(txtConnectionString.Text.Trim().Length != 0) dlg.ConnectionString = txtConnectionString.Text; if(dlg.ShowDialog() == DialogResult.OK) txtConnectionString.Text = dlg.ConnectionString; } }