private void BtnCAgendamento_Clicked(object sender, EventArgs e) { if (string.IsNullOrEmpty(entryNomeClienteA.Text) || string.IsNullOrEmpty(entryServicoA.Text)) { DisplayAlert("Erro..", "Atençaõ! Não deixe os campos em brancos.", "OK"); } else { bool resultadoInsert = agendamento.Inserir(entryNomeClienteA.Text, entryNomeFuncionarioA.Text, entryServicoA.Text, PickerTimerAgendamento, pickerDuracaoAgendamento, DatePickerData); if (resultadoInsert == true) { DisplayAlert("Sucesso!", "Serviço cadastrado com sucesso.", "OK"); entryNomeClienteA.Text = ""; entryNomeFuncionarioA.Text = ""; entryServicoA.Text = ""; Navigation.PopAsync(); } else { DisplayAlert("Ops...", "Houve um erro, tente novamente.", "OK"); } } }