private void ViewCell_Tapped(object sender, System.EventArgs e) { //if (lastCell != null) // lastCell.View.BackgroundColor = Color.Transparent; var viewCell = (ViewCell)sender; if (viewCell.View != null) { //viewCell.View.BackgroundColor = Color.White; lastCell = viewCell; } //LvMesas.SelectedItem = null; //LvMesas.SelectedItem = viewCell.BindingContext; Leccion contex = (Leccion)viewCell.BindingContext; try { App.LeccionSeleccionada = contex; //App.ParteSelected = (Cursos)LvMesas.SelectedItem; var historyBehavior = false ? HistoryBehavior.ClearHistory : HistoryBehavior.Default; App.NavigationService.NavigateTo("WDetalleCurso2", "", historyBehavior); } catch (Exception ex) { } }
public int InsertarLeccion(Leccion item) { lock (locker) { if (GetLeccionExists(item.IdLeccion) == true) { //Update Item database.Update(item); return(item.IdLeccion); } else { //Insert item return(database.Insert(item)); } } }