private void Button_Clicked(object sender, EventArgs e) { var datos = new TESHDatos { Matricula = Convert.ToInt32(Entry_ID.Text), Nombre = Entry_Name.Text, Apellidos = Entry_Ap.Text, Direccion = Entry_Dir.Text, Telefono = Entry_Tel.Text, Carrera = picker_carreras, Semestre = Entry_Sem.Text, Correo = Entry_Cor.Text, Github = Entry_Git.Text }; database.Insert(datos); Navigation.PushAsync(new BasedeDatos()); }
private void Delete_Clicked(object sender, EventArgs e) { var datos = new TESHDatos { Matricula = Convert.ToInt32(Entry_Id.Text), Nombre = Entry_Name.Text, Apellidos = Entry_Ap.Text, Direccion = Entry_Dir.Text, Telefono = Entry_Tel.Text, Carrera = Entry_Car.Text, Semestre = Entry_Sem.Text, Correo = Entry_Cor.Text, Github = Entry_Git.Text }; database.Delete(datos); Navigation.PushAsync(new BasedeDatos()); DisplayAlert("", "Regsitro Eliminado", "OK"); }