private void rbImportRSA_CheckedChanged(object sender, EventArgs e) { if (rbImportRSA.Checked) { using (frmImportPEM frm = new frmImportPEM()) { if (frm.ShowDialog(this) == System.Windows.Forms.DialogResult.OK) { _parameters = frm.Parameters; } else { rbAutoGenRSA.Checked = true; rbImportRSA.Checked = false; } } } }