private void btnGerarXml_Click(object sender, EventArgs e) { try { ACBrMDFe.LimparLista(); CarregarMDFeIni(); ACBrMDFe.Assinar(); var ret = ACBrMDFe.ObterXml(0); rtbRespostas.AppendText(ret); } catch (Exception exception) { MessageBox.Show(exception.Message, @"Erro", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void btnGerarXml_Click(object sender, EventArgs e) { if (!validacao()) { MessageBox.Show("Erro Verifique as configurações do certificado"); return; } try { ACBrMDFe.LimparLista(); CarregarMDFeIni(); ACBrMDFe.Assinar(); var ret = ACBrMDFe.ObterXml(0); rtbRespostas.AppendText(ret); } catch (Exception exception) { MessageBox.Show(exception.Message, @"Erro", MessageBoxButtons.OK, MessageBoxIcon.Error); } }