/**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); }
public Student(Screening s, string l) { Screening = s; LevelOfStudy = l; }
public Adult(Screening s, bool p) { Screening = s; PopcornOffer = p; }
public Ticket(Screening s) { Screening = s; }
public SeniorCitizen(Screening s, int y) { Screening = s; YearOfBirth = y; }