Exemple #1
0
        private void Tag_ListView(object sender, SelectionChangedEventArgs e)
        {
            FilmKinoprogramm.UnselectAll();
            DateTime tagAuswahl = (DateTime)TagKinoprogramm.SelectedItem;

            if (tagAuswahl != null)
            {
                tag = tagAuswahl;
            }
            List <Vorstellung> vorstellungen = new List <Vorstellung>();

            foreach (Vorstellung v in kv.AlleVorstellungenLesen())
            {
                if (v != null && v.DateTime.Date.Equals(tag.Date))
                {
                    vorstellungen.Add(v);
                }
            }
            vorstellungen.Sort();
            FilmKinoprogramm.ItemsSource = vorstellungen;
        }