コード例 #1
0
        private async void PickerListas_SelectedIndexChanged(object sender, EventArgs e)
        {
            var sessionId = await SecureStorage.GetAsync("session_id");

            switch (PickerListas.SelectedIndex)
            {
            case 0: ListViewListaFilme.ItemsSource = Service.GetFilmesFavoritos(sessionId, 1).Result.results;
                break;

            case 1: ListViewListaFilme.ItemsSource = Service.GetWatchlist(sessionId, 1).Result.results;
                break;

            case 2: ListViewListaFilme.ItemsSource = Service.GetFilmesAvaliados(sessionId, 1).Result.results;
                break;
            }
        }