package gui;
-import businessLogic.ApplicationFacadeInterface;
+import businessLogic.BookingManager;
+import businessLogic.HouseManager;
import com.toedter.calendar.*;
this.setSize(new Dimension(410, 413));
this.setTitle("Book Rural House");
jLabel1.setText("Rural house:");
- ApplicationFacadeInterface facade=StartWindow.getBusinessLogic();
- ruralHouses=facade.getAllRuralHouses();
+ HouseManager houseM = new HouseManager();
+ ruralHouses=houseM.getAllRuralHouses();
jComboBox1 = new JComboBox(ruralHouses);
try {
//Obtain the business logic from a StartWindow class (local or remote)
- ApplicationFacadeInterface facade=StartWindow.getBusinessLogic();
+ BookingManager bookingM = new BookingManager();
- Booking book=facade.createBooking(house, firstDay, lastDay, telephone);
+ Booking book=bookingM.createBooking(house, firstDay, lastDay, telephone);
if (book!=null) {
BookRuralHouseConfirmationWindow confirmWindow=new BookRuralHouseConfirmationWindow(book);
confirmWindow.setVisible(true);