public void SetBooking(string bookingID) { if (bookingID == null) { throw new ArgumentNullException("Booking ID reference null"); } bookingID = bookingID.Substring(5, bookingID.IndexOf('\t') - 5).Trim(); screen.ResetExtrasList(); activeBooking = bookings.GetByID(bookingID); if (activeBooking != null) { if (activeBooking.GetBookingType() == BookingType.SIMPLE) { screen.SetBookingType("Simple"); } else { screen.SetBookingType("Facilitated"); } screen.SetClient(activeBooking.GetClient().ToString()); screen.SetActivity(activeBooking.GetActivity().ToString()); screen.SetExtras(activeBooking.GetExtras()); screen.SetVenue(activeBooking.GetVenue().venueName + ", " + activeBooking.GetVenue().venueAddress); screen.SetDate(activeBooking.GetDate().GetFormatted()); screen.SetTime(activeBooking.GetTime().GetFormatted()); screen.SetCost(FormatPrice(activeBooking.GetCost())); screen.SetDefaultDate(activeBooking.GetDate()); screen.SetDefaultTime(activeBooking.GetTime()); screen.EnableButtons(); screen.HideDateSelector(); screen.HideTimeSelector(); } }