private void BuscarCEP(object sender, EventArgs args) { string cep = CEP.Text.Trim(); if (isValidCEP(cep)) { try { Endereco end = ViaCEPServico.BuscarenderecoCEP(cep); if (end != null) { RESULTADO.Text = string.Format("Endereço :{1} {3} {0}, {2}", end.localidade, end.logradouro, end.uf, end.bairro); } else { DisplayAlert("Erro", "Cep Não Localizado", "OK"); } } catch (Exception e) { DisplayAlert("ERRO CRÍTICO", e.Message, "OK"); } } else { RESULTADO.Text = ""; } }