public DetailContent(Result _obj, ResultTv _objTV, ResultPeop _objPersonas, string _bandera)
        {
            InitializeComponent();

            objPeliculas = _obj;
            objTV        = _objTV;
            objPersonas  = _objPersonas;
            bandera      = _bandera;
        }
Beispiel #2
0
        private void ListView_ItemSelected(object sender, SelectedItemChangedEventArgs e)
        {
            var index = (lvItems.ItemsSource as ObservableCollection <object>).IndexOf(e.SelectedItem as object);

            Result     itemPeliculas = new Result();
            ResultTv   itemTV        = new ResultTv();
            ResultPeop itemPersonas  = new ResultPeop();

            if (bandera == "Películas")
            {
                itemPeliculas = peliculas.ElementAt(index);
            }
            if (bandera == "Show de TV")
            {
                itemTV = tvs.ElementAt(index);
            }
            if (bandera == "Personal")
            {
                itemPersonas = personas.ElementAt(index);
            }

            Navigation.PushAsync(new DetailContent(itemPeliculas, itemTV, itemPersonas, bandera));
        }