Beispiel #1
0
 private void Do_suchenCommand(object obj)
 {
     CurrentFilm.Clear();
     foreach (Film b in Kinos.findFilmByName(FilmName))
     {
         CurrentFilm.Add(b);
     }
 }
Beispiel #2
0
        private void Do_bestellenCommand(object obj)
        {
            KinoView_ViewModel bestellung_ViewModel = new KinoView_ViewModel((Film)obj);

            KinoView newKinoView = new KinoView();

            newKinoView.DataContext = bestellung_ViewModel;

            if (newKinoView.ShowDialog() == true)
            {
                bestellung_ViewModel = (KinoView_ViewModel)newKinoView.DataContext;

                Film currentFilm = bestellung_ViewModel.Film;

                CurrentFilm.Remove((Film)obj);
                CurrentFilm.Add(currentFilm);
            }
        }