using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; namespace SkyTeam { public partial class ReservierungssuchePage : Page { public ReservierungssuchePage() { InitializeComponent(); } private void SearchFlights_Click(object sender, RoutedEventArgs e) { ((MainWindow)Application.Current.MainWindow).MainFrame.Navigate(new verfuegbareFluge()); } private void HomeButton_Click(object sender, RoutedEventArgs e) { ((MainWindow)Application.Current.MainWindow).MainFrame.Navigate(new NavigationPage()); } private void BookingsButton_Click(object sender, RoutedEventArgs e) { ((MainWindow)Application.Current.MainWindow).MainFrame.Navigate(new BuchungenPage()); } private void SettingsButton_Click(object sender, RoutedEventArgs e) { ((MainWindow)Application.Current.MainWindow).MainFrame.Navigate(new SettingsPage()); } private void LogoutButton_Click(object sender, RoutedEventArgs e) { var result = MessageBox.Show( "Möchten Sie sich wirklich abmelden?", "Abmelden", MessageBoxButton.YesNo, MessageBoxImage.Question); if (result == MessageBoxResult.Yes) { ((MainWindow)Application.Current.MainWindow).MainFrame.Navigate(new LogInPage()); } } } }