Beispiel #1
0
 private FacadeController()
 {
     dbCon       = new SQLiteController();
     hotelCon    = new HotelController(dbCon);
     logCon      = new LogController(dbCon);
     customerCon = new BookingController(dbCon, hotelCon, logCon);
 }
 //Initializes a HotelController
 internal HotelController(SQLiteController db)
 {
     dbCon = db;
 }
 internal CustomerController(SQLiteController db)
 {
     dbCon = db;
 }
 internal BookingController(SQLiteController db, HotelController h, LogController l)
 {
     dbCon = db;
     hCon  = h;
     LCon  = l;
 }
 internal LogController(SQLiteController db)
 {
     dbCon = db;
 }