Exemplo n.º 1
0
 /**Creating of Cinema List**/
 static void initCinemaHall(List<CinemaHall> CinemaList)
 {
     CinemaHall c;
     c = new CinemaHall("Singa North", 1, 30); CinemaList.Add(c);
     c = new CinemaHall("Singa North", 2, 10); CinemaList.Add(c);
     c = new CinemaHall("Singa West", 1, 50); CinemaList.Add(c);
     c = new CinemaHall("Singa East", 1, 5); CinemaList.Add(c);
     c = new CinemaHall("Singa Central", 1, 20); CinemaList.Add(c);
     c = new CinemaHall("Singa Central", 2, 15); CinemaList.Add(c);
 }
Exemplo n.º 2
0
 public Screening(DateTime d, string s, CinemaHall c, Movie m)
 {
     ScreeningNo = Convert.ToString(ScreeningCount);
     ScreeningCount++;
     SeatsRemaining    = c.Capacity;
     ScreeningDateTime = d;
     ScreeningType     = s;
     CinemaHall        = c;
     Movie             = m;
 }
Exemplo n.º 3
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);
        }