Ejemplo n.º 1
0
        private void CallBackFunction(object sender, ServiceReference1.DetailsForCancelledBookingCompletedEventArgs e)
        {
            if(!e.Result.Contains("No Booking"))
            {
                string[] token = e.Result.Split(new char[] { '+' });
                CustomerLocationText.Text = token[0];
                DestinationTextBox.Text = token[1];
                DateTextBox.Text = token[2];
            }
            else
            {
                MessageBox.Show(e.Result);
            }

            ServiceReference1.ServiceClient clientForTesting = new ServiceReference1.ServiceClient();
                   
            clientForTesting.UpdateBookingAndCabStatusCompleted += new EventHandler<ServiceReference1.UpdateBookingAndCabStatusCompletedEventArgs>(CallBackFunction2);
            clientForTesting.UpdateBookingAndCabStatusAsync(BookingID, CabID);
            

        }