71 lines
2.1 KiB
C#
71 lines
2.1 KiB
C#
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
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for verfuegbareFluge.xaml
|
|
/// </summary>
|
|
public partial class verfuegbareFluge : Page
|
|
{
|
|
public verfuegbareFluge()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void BookFlight_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
MessageBox.Show("Erfolgreich gebuchtt");
|
|
|
|
((MainWindow)Application.Current.MainWindow).MainFrame.Navigate(new BuchungenPage());
|
|
}
|
|
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 BookFlightButton_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
((MainWindow)Application.Current.MainWindow).MainFrame.Navigate(new BuchungenPage());
|
|
}
|
|
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());
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
}
|