private void reserveButton_Click(object sender, RoutedEventArgs e) { MovieList aMovie = new MovieList(); aMovie.Add(this.Movie); ShowList ShowsForMovie = new ShowList(aMovie, this.ShowList.Halls); for (int i = 0; i < this.ShowList.Count(); i++) { if (this.ShowList[i].Movie == this.Movie) { ShowsForMovie.Add(ShowList[i]); } } ProgramWindow window = new ProgramWindow(ShowsForMovie); window.Show(); }
private void ProgramLabel_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) { ProgramWindow window = new ProgramWindow(shows); window.Show(); }