private void btnCargarFirma_Click(object sender, EventArgs e) { if (openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK) { using (FileStream fs = new FileStream(openFileDialog1.FileName, FileMode.Open)) { var firmas = FirmaXades.Load(fs); FrmSeleccionarFirma frm = new FrmSeleccionarFirma(firmas); if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK) { _firmaXades = frm.FirmaSeleccionada; } else { MessageBox.Show("Debe seleccionar una firma."); } } } }