Пример #1
0
        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);
            }
        }
Пример #2
0
        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);
            }
        }