Beispiel #1
0
        private void BtnPickFlight_Click(object sender, RoutedEventArgs e)
        {
            SelectedFlight = DgRoundtrip.SelectedItem as Flight;
            BookFlightPassenger bf = new BookFlightPassenger(SelectedFlight, user, EFlightType.ONEWAY);

            bf.ShowDialog();
            this.Close();
        }
 private void BtnPickSeat_Click(object sender, RoutedEventArgs e)
 {
     if (ValidationPick() == true)
     {
         SelectedFlight = DGFlights.SelectedItem as Flight;
         type           = (EFlightType)CbFlightType.SelectedItem;
         BookFlightPassenger bf = new BookFlightPassenger(SelectedFlight, user, type);
         bf.ShowDialog();
         this.Close();
     }
 }