public Cancel_Booking() { InitializeComponent(); // Getting the time customer made the booking ServiceReference1.ServiceClient clientfortesting = new ServiceReference1.ServiceClient(); clientfortesting.GetBookingTimeCompleted += new EventHandler<ServiceReference1.GetBookingTimeCompletedEventArgs>(ReturnFunction); clientfortesting.GetBookingTimeAsync(ForGlobalVariables.CutomerBookingDetails.BookingID); }