private async void Insertar_Clicked(object sender, EventArgs e) { var datos = new _13090371 { Id = Entry_Id.Text, Nombre = Entry_Nom.Text, Apellidos = Entry_Ape.Text, Direccion = Entry_Dir.Text, Telefono = Entry_Tel.Text, Carrera = datoPiker, Semestre = datoPiker_sem, Matricula = Entry_Matric.Text, Correo = Entry_Cor.Text, Github = Entry_Git.Text, }; await DetailPageBD.Tabla.InsertAsync(datos); await DisplayAlert("", "agregado", "OK"); //await Navigation.PopAsync(); await Navigation.PopModalAsync(); //await Navigation.PushAsync(new DetailPageBD()); //await Navigation.PushAsync(); //database.Insert(datos); //Navigation.PushModalAsync(new DetailPageBD()); }
private async void ButtonEliminar_Clicked(object sender, EventArgs e) { var datos = new _13090371 { Id = Entry_Id.Text, Nombre = Entry_Nom.Text, Apellidos = Entry_Ape.Text, Direccion = Entry_Dir.Text, Telefono = Entry_Telef.Text, Carrera = datoPiker, Semestre = datoPiker_sem, Matricula = Entry_Matric.Text, Correo = Entry_Corre.Text, Github = Entry_Git.Text, }; await DetailPageBD.Tabla.DeleteAsync(datos); await Navigation.PopAsync(); //database.Delete(datos); //Navigation.PushModalAsync(new DetailPageBD()); //DisplayAlert("", "Registro Eliminado ✔", "Aceptar"); }