alle fehler korigieren , alles ui ist funktionfähig , muss aber implementiert werden
This commit is contained in:
@@ -4,19 +4,16 @@ using System.Collections.ObjectModel;
|
|||||||
|
|
||||||
namespace SkyTeam
|
namespace SkyTeam
|
||||||
{
|
{
|
||||||
public partial class MeineBuchungenPage : Page
|
public partial class BuchungenPage : Page
|
||||||
{
|
{
|
||||||
public MeineBuchungenPage()
|
public BuchungenPage()
|
||||||
{
|
{
|
||||||
|
|
||||||
LoadBookings();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void LoadBookings()
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private void SearchBookingsButton_Click(object sender, RoutedEventArgs e)
|
private void SearchBookingsButton_Click(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
@@ -30,7 +27,7 @@ namespace SkyTeam
|
|||||||
|
|
||||||
private void BookingsButton_Click(object sender, RoutedEventArgs e)
|
private void BookingsButton_Click(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
((MainWindow)Application.Current.MainWindow).MainFrame.Navigate(new MeineBuchungenPage());
|
((MainWindow)Application.Current.MainWindow).MainFrame.Navigate(new BuchungenPage());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SettingsButton_Click(object sender, RoutedEventArgs e)
|
private void SettingsButton_Click(object sender, RoutedEventArgs e)
|
||||||
@@ -40,7 +37,7 @@ namespace SkyTeam
|
|||||||
|
|
||||||
private void BookFlightButton_Click(object sender, RoutedEventArgs e)
|
private void BookFlightButton_Click(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
((MainWindow)Application.Current.MainWindow).MainFrame.Navigate(new MeineBuchungenPage());
|
((MainWindow)Application.Current.MainWindow).MainFrame.Navigate(new BuchungenPage());
|
||||||
}
|
}
|
||||||
private void LogoutButton_Click(object sender, RoutedEventArgs e)
|
private void LogoutButton_Click(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
@@ -57,5 +54,10 @@ namespace SkyTeam
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void OpenReservierungSuche_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
((MainWindow)Application.Current.MainWindow).MainFrame.Navigate(new ReservierungssuchePage());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ namespace SkyTeam
|
|||||||
|
|
||||||
private void BookingsButton_Click(object sender, RoutedEventArgs e)
|
private void BookingsButton_Click(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
((MainWindow)Application.Current.MainWindow).MainFrame.Navigate(new MeineBuchungenPage());
|
((MainWindow)Application.Current.MainWindow).MainFrame.Navigate(new BuchungenPage());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SettingsButton_Click(object sender, RoutedEventArgs e)
|
private void SettingsButton_Click(object sender, RoutedEventArgs e)
|
||||||
@@ -28,7 +28,7 @@ namespace SkyTeam
|
|||||||
|
|
||||||
private void BookFlightButton_Click(object sender, RoutedEventArgs e)
|
private void BookFlightButton_Click(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
((MainWindow)Application.Current.MainWindow).MainFrame.Navigate(new MeineBuchungenPage());
|
((MainWindow)Application.Current.MainWindow).MainFrame.Navigate(new BuchungenPage());
|
||||||
}
|
}
|
||||||
private void LogoutButton_Click(object sender, RoutedEventArgs e)
|
private void LogoutButton_Click(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ namespace SkyTeam
|
|||||||
public LogInPage()
|
public LogInPage()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,32 +8,16 @@ namespace SkyTeam
|
|||||||
public MainWindow()
|
public MainWindow()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
<<<<<<< HEAD
|
|
||||||
TestDatabaseConnection();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void TestDatabaseConnection()
|
|
||||||
{
|
|
||||||
DataBase db = new DataBase();
|
|
||||||
bool success = db.TestConnection();
|
|
||||||
|
|
||||||
if (success)
|
|
||||||
MessageBox.Show("Datenbank ist verfügbar!", "Erfolg", MessageBoxButton.OK, MessageBoxImage.Information);
|
|
||||||
else
|
|
||||||
MessageBox.Show("Probleme mit der Verbindung.", "Fehler", MessageBoxButton.OK, MessageBoxImage.Error);
|
|
||||||
=======
|
|
||||||
ShowLoginPage();
|
ShowLoginPage();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private void ShowLoginPage()
|
private void ShowLoginPage()
|
||||||
{
|
{
|
||||||
MainFrame.Navigate(new LogInPage());
|
MainFrame.Navigate(new LogInPage());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void NavigateToApp()
|
|
||||||
{
|
|
||||||
MainFrame.Navigate(new NavigationPage());
|
|
||||||
>>>>>>> deaa68880afaf3dd53903180eef7a43c3e23056a
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ namespace SkyTeam
|
|||||||
|
|
||||||
private void BookingsButton_Click(object sender, RoutedEventArgs e)
|
private void BookingsButton_Click(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
((MainWindow)Application.Current.MainWindow).MainFrame.Navigate(new MeineBuchungenPage());
|
((MainWindow)Application.Current.MainWindow).MainFrame.Navigate(new BuchungenPage());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SettingsButton_Click(object sender, RoutedEventArgs e)
|
private void SettingsButton_Click(object sender, RoutedEventArgs e)
|
||||||
@@ -67,7 +67,7 @@ namespace SkyTeam
|
|||||||
|
|
||||||
private void BookFlightButton_Click(object sender, RoutedEventArgs e)
|
private void BookFlightButton_Click(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
((MainWindow)Application.Current.MainWindow).MainFrame.Navigate(new MeineBuchungenPage());
|
((MainWindow)Application.Current.MainWindow).MainFrame.Navigate(new BuchungenPage());
|
||||||
}
|
}
|
||||||
private void LogoutButton_Click(object sender, RoutedEventArgs e)
|
private void LogoutButton_Click(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,15 +16,21 @@
|
|||||||
<ColumnDefinition Width="*"/>
|
<ColumnDefinition Width="*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
<Border Grid.ColumnSpan="2"
|
<Border Grid.Row="0"
|
||||||
|
Grid.ColumnSpan="2"
|
||||||
Background="#FF1E88E5"
|
Background="#FF1E88E5"
|
||||||
Padding="15">
|
Padding="15">
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<Ellipse Width="36" Height="36" Fill="White" Margin="0,0,10,0"/>
|
<Ellipse Width="36" Height="36" Fill="White" Margin="0,0,10,0"/>
|
||||||
<TextBlock Text="Flug reservieren"
|
<StackPanel>
|
||||||
|
<TextBlock Text="Sky Team Airlines"
|
||||||
FontSize="20"
|
FontSize="20"
|
||||||
FontWeight="Bold"
|
FontWeight="Bold"
|
||||||
Foreground="White"/>
|
Foreground="White"/>
|
||||||
|
<TextBlock Text="Sichere und komfortable Flüge weltweit"
|
||||||
|
FontSize="12"
|
||||||
|
Foreground="White"/>
|
||||||
|
</StackPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Border>
|
</Border>
|
||||||
|
|
||||||
@@ -74,37 +80,41 @@
|
|||||||
<TextBlock Text="Flug suchen"
|
<TextBlock Text="Flug suchen"
|
||||||
FontSize="28"
|
FontSize="28"
|
||||||
FontWeight="Bold"/>
|
FontWeight="Bold"/>
|
||||||
<TextBlock Text="Wählen Sie Datum und Strecke für Ihre Reservierung"
|
<TextBlock Text="Datum und Strecke eingeben"
|
||||||
FontSize="16"
|
FontSize="16"
|
||||||
Foreground="#666"/>
|
Foreground="#666"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<Grid>
|
<Border Background="#F5F7FA"
|
||||||
<Grid.ColumnDefinitions>
|
CornerRadius="12"
|
||||||
<ColumnDefinition Width="Auto"/>
|
Padding="30">
|
||||||
<ColumnDefinition Width="180"/>
|
|
||||||
<ColumnDefinition Width="Auto"/>
|
|
||||||
<ColumnDefinition Width="180"/>
|
|
||||||
<ColumnDefinition Width="Auto"/>
|
|
||||||
<ColumnDefinition Width="180"/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
|
|
||||||
<Label Content="Von:"/>
|
<StackPanel Width="350">
|
||||||
<TextBox Grid.Column="1"/>
|
|
||||||
|
|
||||||
<Label Grid.Column="2" Content="Nach:"/>
|
<TextBlock Text="Von"
|
||||||
<TextBox Grid.Column="3"/>
|
FontWeight="SemiBold"
|
||||||
|
Margin="0,0,0,5"/>
|
||||||
|
<TextBox Height="40" Margin="0,0,0,15"/>
|
||||||
|
|
||||||
<Label Grid.Column="4" Content="Abflugdatum:"/>
|
<TextBlock Text="Nach"
|
||||||
<DatePicker Grid.Column="5"/>
|
FontWeight="SemiBold"
|
||||||
</Grid>
|
Margin="0,0,0,5"/>
|
||||||
|
<TextBox Height="40" Margin="0,0,0,15"/>
|
||||||
|
|
||||||
<Button Content="Flüge anzeigen"
|
<TextBlock Text="Abflugdatum"
|
||||||
Width="200"
|
FontWeight="SemiBold"
|
||||||
|
Margin="0,0,0,5"/>
|
||||||
|
<DatePicker Height="40" Margin="0,0,0,25"/>
|
||||||
|
|
||||||
|
<Button Content="Flüge suchen"
|
||||||
Height="45"
|
Height="45"
|
||||||
HorizontalAlignment="Right"
|
FontWeight="Bold"
|
||||||
Margin="0,30,0,0"
|
Background="#FF1E88E5"
|
||||||
|
Foreground="White"
|
||||||
Click="SearchFlights_Click"/>
|
Click="SearchFlights_Click"/>
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
</Border>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
|
|||||||
@@ -15,14 +15,50 @@ using System.Windows.Shapes;
|
|||||||
|
|
||||||
namespace SkyTeam
|
namespace SkyTeam
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// Interaction logic for reservierungsSuche.xaml
|
public partial class ReservierungssuchePage : Page
|
||||||
/// </summary>
|
|
||||||
public partial class reservierungsSuche : Page
|
|
||||||
{
|
{
|
||||||
public reservierungsSuche()
|
public ReservierungssuchePage()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
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());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
134
SkyTeam/verfuegbareFluge.xaml
Normal file
134
SkyTeam/verfuegbareFluge.xaml
Normal file
@@ -0,0 +1,134 @@
|
|||||||
|
<Page x:Class="SkyTeam.verfuegbareFluge"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
|
||||||
|
Title="verfuegbareFluge">
|
||||||
|
|
||||||
|
<Grid>
|
||||||
|
|
||||||
|
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="180"/>
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Border Grid.Row="0"
|
||||||
|
Grid.ColumnSpan="2"
|
||||||
|
Background="#FF1E88E5"
|
||||||
|
Padding="15">
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<Ellipse Width="36" Height="36" Fill="White" Margin="0,0,10,0"/>
|
||||||
|
<StackPanel>
|
||||||
|
<TextBlock Text="Sky Team Airlines"
|
||||||
|
FontSize="20"
|
||||||
|
FontWeight="Bold"
|
||||||
|
Foreground="White"/>
|
||||||
|
<TextBlock Text="Sichere und komfortable Flüge weltweit"
|
||||||
|
FontSize="12"
|
||||||
|
Foreground="White"/>
|
||||||
|
</StackPanel>
|
||||||
|
</StackPanel>
|
||||||
|
</Border>
|
||||||
|
|
||||||
|
<StackPanel Grid.Row="1"
|
||||||
|
Grid.Column="0"
|
||||||
|
Background="#FFE3F2FD">
|
||||||
|
|
||||||
|
<Button Height="50" Margin="5" Click="HomeButton_Click">
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<iconPacks:PackIconMaterial Kind="Home" Width="20" Margin="0,0,10,0"/>
|
||||||
|
<TextBlock Text="Home"/>
|
||||||
|
</StackPanel>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button Height="50" Margin="5" Click="BookingsButton_Click">
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<iconPacks:PackIconMaterial Kind="Airplane" Width="20" Margin="0,0,10,0"/>
|
||||||
|
<TextBlock Text="Meine Buchungen"/>
|
||||||
|
</StackPanel>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button Height="50" Margin="5" Click="SettingsButton_Click">
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<iconPacks:PackIconMaterial Kind="Cog" Width="20" Margin="0,0,10,0"/>
|
||||||
|
<TextBlock Text="Einstellungen"/>
|
||||||
|
</StackPanel>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button Height="50"
|
||||||
|
Margin="5"
|
||||||
|
Background="#FFEBEB"
|
||||||
|
BorderBrush="#FFB71C1C"
|
||||||
|
Foreground="#D32F2F"
|
||||||
|
FontWeight="Bold"
|
||||||
|
Click="LogoutButton_Click">
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<iconPacks:PackIconMaterial Kind="Logout" Width="20" Margin="0,0,10,0"/>
|
||||||
|
<TextBlock Text="Abmelden"/>
|
||||||
|
</StackPanel>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
<Grid Grid.Row="1" Grid.Column="1" Margin="30">
|
||||||
|
|
||||||
|
<StackPanel Margin="0,0,0,25">
|
||||||
|
<TextBlock Text="Verfügbare Flüge"
|
||||||
|
FontSize="28"
|
||||||
|
FontWeight="Bold"/>
|
||||||
|
<TextBlock Text="Wählen Sie einen Flug aus und klicken Sie auf Buchen"
|
||||||
|
FontSize="16"
|
||||||
|
Foreground="#666"/>
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
<Border Background="#F5F7FA"
|
||||||
|
CornerRadius="12"
|
||||||
|
Padding="20">
|
||||||
|
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<DataGrid x:Name="AvailableFlightsDataGrid"
|
||||||
|
Grid.Row="0"
|
||||||
|
AutoGenerateColumns="False"
|
||||||
|
CanUserAddRows="False"
|
||||||
|
IsReadOnly="True"
|
||||||
|
GridLinesVisibility="Horizontal"
|
||||||
|
HeadersVisibility="Column"
|
||||||
|
SelectionMode="Single"
|
||||||
|
Margin="0,0,0,20">
|
||||||
|
<DataGrid.Columns>
|
||||||
|
<DataGridTextColumn Header="Flug Nummer" Width="120" Binding="{Binding FlightNumber}"/>
|
||||||
|
<DataGridTextColumn Header="Von" Width="100" Binding="{Binding From}"/>
|
||||||
|
<DataGridTextColumn Header="Bis" Width="100" Binding="{Binding To}"/>
|
||||||
|
<DataGridTextColumn Header="Pilot" Width="120" Binding="{Binding Pilot}"/>
|
||||||
|
<DataGridTextColumn Header="Flugzeug" Width="120" Binding="{Binding Plane}"/>
|
||||||
|
<DataGridTextColumn Header="Datum" Width="140" Binding="{Binding Date}"/>
|
||||||
|
</DataGrid.Columns>
|
||||||
|
</DataGrid>
|
||||||
|
|
||||||
|
<Button Grid.Row="1"
|
||||||
|
Content="Buchen"
|
||||||
|
Height="45"
|
||||||
|
Width="140"
|
||||||
|
HorizontalAlignment="Right"
|
||||||
|
Background="#FF1E88E5"
|
||||||
|
Foreground="White"
|
||||||
|
FontWeight="Bold"
|
||||||
|
Click="BookFlight_Click"/>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</Border>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
</Page>
|
||||||
70
SkyTeam/verfuegbareFluge.xaml.cs
Normal file
70
SkyTeam/verfuegbareFluge.xaml.cs
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
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());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user