Example #1
0
        private async void searchCNPJ()
        {
            BTSearchCnpj.IsEnabled = false;
            String captcha = TBCaptcha.Text;

            await Task.Run(() =>
            {
                SearchCNPJ.Consulta(cnpj, captcha);
                CompanyRegisterView.empresa = SearchCNPJ.Empresa;
            });

            BTSearchCnpj.IsEnabled = true;
        }
Example #2
0
 private void chargeCaptcha(object sender, DoWorkEventArgs doWorkEventArgs)
 {
     SearchCNPJ.getCaptcha();
 }