private void BtnCCeEnviarCarta_Click(object sender, EventArgs e) { try { var aSequenciaEvento = 1; txtCCeXml.Text = spdNFe.EnviarCCe(txtCCeIdNota.Text, txtCCeJustificativa.Text, txtCCeDataEvento.Text, txtCCeCodigoUF.Text, txtCCeIdLote.Text, aSequenciaEvento, cboCCeFuso.Text); } catch (Exception ex) { MessageBox.Show(ex.Message, "Erro", MessageBoxButtons.OK, MessageBoxIcon.Error); } }