public void SaveBooking() { if (activeBooking != null) { if (activeBooking.CheckThirdPartyCompanies()) { DatabaseQueries.ConfirmBooking(activeBooking); ResetUserInterface(); GetAllClientBookings(currentClientIndex); screen.HideDateSelector(); screen.HideTimeSelector(); } else { activeBooking.UpdateCosts(); screen.ShowError("Error", "Original third party companies no longer available.\nNew companies have been found and costs have been updated"); screen.SetCost(FormatPrice(activeBooking.GetCost())); } } }