Exemple #1
0
        /**Creating of screening list**/
        static void initScreening(List<Screening> ScreeningList, List<CinemaHall> CinemaList, List<Movie> MovieList)
        {
            Screening s;
            DateTime d1 = new DateTime(2016, 12, 29, 15, 00, 00); CinemaHall c = CinemaList[2]; Movie m = MovieList[0];
            s = new Screening(d1, "3D", c, m); ScreeningList.Add(s);

            DateTime d2 = new DateTime(2017, 01, 03, 13, 00, 00); c = CinemaList[3]; m = MovieList[1];
            s = new Screening(d2, "2D", c, m); ScreeningList.Add(s);

            DateTime d3 = new DateTime(2017, 01, 31, 19, 00, 00); c = CinemaList[0]; m = MovieList[3];
            s = new Screening(d3, "3D", c, m); ScreeningList.Add(s);

            DateTime d4 = new DateTime(2017, 02, 02, 15, 00, 00); c = CinemaList[1]; m = MovieList[3];
            s = new Screening(d4, "2D", c, m); ScreeningList.Add(s);
        }
Exemple #2
0
 public Student(Screening s, string l)
 {
     Screening    = s;
     LevelOfStudy = l;
 }
Exemple #3
0
 public Adult(Screening s, bool p)
 {
     Screening    = s;
     PopcornOffer = p;
 }
Exemple #4
0
 public Ticket(Screening s)
 {
     Screening = s;
 }
Exemple #5
0
 public SeniorCitizen(Screening s, int y)
 {
     Screening   = s;
     YearOfBirth = y;
 }