Ejemplo n.º 1
0
 /// <summary>
 /// Creates a new instance of Cinema
 /// </summary>
 /// <param name="name"></param>
 /// <param name="rooms"></param>
 /// <param name="movies"></param>
 /// <param name="customers"></param>
 /// <param name="bookings"></param>
 /// <param name="shows"></param>
 public Cinema(string name, IEnumerable <Room> rooms = null, IEnumerable <Movie> movies = null, IEnumerable <Customer> customers = null, IEnumerable <Booking> bookings = null, IEnumerable <Show> shows = null)
 {
     Name      = name;
     Rooms     = new SimpleCollection <Room>(rooms);
     Shows     = new SimpleCollection <Show>(shows);
     Movies    = new SimpleCollection <Movie>(movies);
     Customers = new SimpleCollection <Customer>(customers);
     Bookings  = new SimpleCollection <Booking>(bookings);
 }
Ejemplo n.º 2
0
 public Controller()
 {
     Cinemas = new SimpleCollection <Cinema>();
 }
Ejemplo n.º 3
0
 public Controller(string path)
 {
     Cinemas = SimpleCollection <Cinema> .GetDeserialized(File.ReadAllText(path));
 }