// METHODS: /* * Constructor. */ public WindowInvoice(ModelFacade mFacade) { InitializeComponent(); this.mFacade = mFacade; // get all the amounts: int nbNights = mFacade.GetCurrentNbNights(); float costPerNight = mFacade.GetCurrentCostPerNight(); float breakfastCost = mFacade.GetCurrentBreakfastCost(); float eveningMealsCost = mFacade.GetCurrentEveningMealsCost(); float carHireCost = mFacade.GetCurrentCarHireCost(); printDetails(); printBookingBreakdown(nbNights, costPerNight); printExtrasBreakdown(breakfastCost, eveningMealsCost, carHireCost); printTotal((nbNights * costPerNight) + breakfastCost + eveningMealsCost + carHireCost); }