public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position) { RVInactiveHolder viewHolder = holder as RVInactiveHolder; viewHolder.name.Text = restaurants[position].name; viewHolder.lastConnection.Text = $"Última conexión: {restaurants[position].lastLogin.ToString("dd-MM-yyyy")}"; viewHolder.phone.Text = $"Teléfono: {restaurants[position].phone}"; viewHolder.image.SetImageBitmap(ImageHelper.GetImageBitmapFromUrl(restaurants[position].UrlMainFoto)); viewHolder.button.Click += delegate { API.DeleteRestaurant(restaurants[position].idrestaurant); restaurants.RemoveAt(position); NotifyDataSetChanged(); Toast.MakeText(context, "El restaurante ha sido eliminado.", ToastLength.Long).Show(); }; }