Пример #1
0
        static void PopulateMovies(Theater theater)
        {
            //Make Movies
            Movie IT            = new Movie("IT", "Clowns are Scary");
            Movie WeddingSinger = new Movie("The Wedding Singer", "Adam Sandler hahaha!");
            Movie JurassicPark  = new Movie("Jurassic Park", "Dinosaurs Are Awesome!");

            //Made Showtimes
            IT.addShowtime("10:00", 5.99f, 100);
            IT.addShowtime("12:00", 5.99f, 100);
            IT.addShowtime("2:00", 5.99f, 100);

            WeddingSinger.addShowtime("10:00", 5.99f, 100);
            WeddingSinger.addShowtime("12:00", 5.99f, 100);
            WeddingSinger.addShowtime("2:00", 5.99f, 100);

            JurassicPark.addShowtime("10:00", 5.99f, 100);
            JurassicPark.addShowtime("12:00", 5.99f, 100);
            JurassicPark.addShowtime("2:00", 5.99f, 100);

            theater.addMovie(IT);
            theater.addMovie(WeddingSinger);
            theater.addMovie(JurassicPark);
        }
Пример #2
0
 public FoodMenu(Theater theater)
 {
     CurrentTheater = theater;
 }
Пример #3
0
 public RootMenu(Theater theater)
 {
     CurrentTheater = theater;
 }
Пример #4
0
 public MovieMenu(Theater theater)
 {
     CurrentTheater = theater;
 }
Пример #5
0
 public ShowtimeMenu(Theater theater, Movie movie)
 {
     CurrentTheater = theater;
     CurrentMovie   = movie;
 }