Esempio n. 1
0
        private void list_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            Show    show = (Show)list.SelectedItem;
            Episode ep   = null;

            try
            {
                ep = JsonStuff.GetEpisode(show.externals.tvrage);
                DateTime dt = Convert.ToDateTime(ep.airdate);
                lblNextEp.Content = "Next episode airs on " + dt.ToString("d MMM yyy");
            }
            catch (Exception)
            {
                lblNextEp.Content = "No new episode found!";
            }
        }
Esempio n. 2
0
        private void btnSearch_Click(object sender, RoutedEventArgs e)
        {
            var shows = JsonStuff.GetShows(txtSearch.Text);

            list.ItemsSource = shows;
        }