deleted aplicationFacade and imported it's functions to specific business logics.
[RRRRHHHH_Code] / ruralHouses / src / gui / IntroduceOffer2GUI.java
index 276dcfa..db1e2fe 100644 (file)
@@ -10,7 +10,8 @@ import javax.swing.*;
 import java.awt.*;
 import java.awt.event.*;
 
-import businessLogic.ApplicationFacadeInterface;
+
+import businessLogic.OfferManager;
 
 import com.toedter.calendar.JCalendar;
 
@@ -153,9 +154,9 @@ public class IntroduceOffer2GUI extends JFrame  {
                float price= Float.parseFloat(jTextField3.getText());
                try {
                        //Obtain the business logic from a StartWindow class (local or remote)
-                       ApplicationFacadeInterface facade=StartWindow.getBusinessLogic();
+                       OfferManager offerM = new OfferManager();
 
-                       facade.createOffer(ruralHouse, firstDay, lastDay, price); 
+                       offerM.createOffer(ruralHouse, firstDay, lastDay, price); 
 
                        this.setVisible(false);
                }