protected override async void OnAppearing() { alun = i.Pegaralunos(); BindingContext = alun as AlunoBean; base.OnAppearing(); i.ConsultarAlunosLista(); }
public async void Button_ClickedDeletar(object sender, EventArgs e) { var actionDeletar = await DisplayAlert("Deletar", "Voce escolheu Deletar seu maldito se tem certeza ", "Ok", "Cancelar"); InserirAlunos i = new InserirAlunos(); if (actionDeletar == true) { await servicaoalunao.DeleteAlunoAsync(alun); i.DeletarAlunoss(); i.ConsultarAlunosLista(); } await PopupNavigation.Instance.PopAsync(); }