private void sslBrowse_Click(object sender, EventArgs e) { CertificatePicker cp = new CertificatePicker(); DialogResult result = cp.ShowDialog(); if (result == DialogResult.Cancel || string.IsNullOrEmpty(cp.Store) || string.IsNullOrEmpty(cp.Hash)) { return; } this.sslCertHash.Text = cp.Hash; this.sslCertStore.Text = cp.Store; SslSetEditing(true); }