Beispiel #1
0
        private void CancelBookingButton_Click(object sender, RoutedEventArgs e)
        {
            String Fare;
            String[] token = ApproximateFare.Split(new char[] { ' ' });
            String[] token2 = token[2].Split(new char[] { '/' });
            Fare = token2[0];

            // Getting the time customer made the booking
            ServiceReference1.ServiceClient clientfortesting = new ServiceReference1.ServiceClient();
            clientfortesting.CancelBookingCompleted += new EventHandler<ServiceReference1.CancelBookingCompletedEventArgs>(CancellationReturnFunction);
            clientfortesting.CancelBookingAsync(ForGlobalVariables.CutomerBookingDetails.BookingID,TimeElapsed.ToString(),BookingStatusTextBox.Text,Convert.ToInt32(Fare));
        }