public MovieWindow(Movie movie, ShowList showlist)
 {
     InitializeComponent();
     LoadMovieData(movie);
     this.ShowList = showlist;
     this.Movie = movie;
 }
 public ProgramWindow(ShowList shows)
 {
     InitializeComponent();
     this.Shows = shows;
     PopulateWithCells();
     DayOfWeekLabel.Content = currentDayOfWeek;
     btnForward.IsEnabled = false;
 }
Esempio n. 3
0
        private void InitializeWindow()
        {
            loader = new MovieLoader();
            movies = loader.LoadAllMovies();
            halls = new CinemaHallList();
            halls.LoadHalls();
            shows = new ShowList(movies, halls);
            shows.LoadShows();

            movies = loader.LoadPremieres();
            UpdateUI();
        }
        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();
        }
Esempio n. 5
0
 private static void OpenMovieWindow(Movie movie, ShowList shows)
 {
     MovieWindow window = new MovieWindow(movie, shows);
     window.Show();
 }