private void btnConsultaSituacao_Click(object sender, EventArgs e) { if (txtNfeSit.Text == string.Empty) MessageBox.Show("Informe uma NF-e."); else { Cursor = Cursors.AppStarting; ; lblStatus.Text = "Aguarde..."; btnConsultaSituacao.Enabled = false; nfec.nfecsharp nfe = new nfec.nfecsharp(); txtConsultaSituacao.Text = nfe.NfeConsulta(txtNfeSit.Text); btnConsultaSituacao.Enabled = true; lblStatus.Text = "ConcluĂ­do."; Cursor = Cursors.Default; } }