Resolve merge conflicts
This commit is contained in:
172
SkyTeam/BuchungenPage.xaml
Normal file
172
SkyTeam/BuchungenPage.xaml
Normal file
@@ -0,0 +1,172 @@
|
||||
<Page x:Class="SkyTeam.MeineBuchungenPage"
|
||||
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="MeineBuchungenPage">
|
||||
|
||||
<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"
|
||||
VerticalAlignment="Center">
|
||||
<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"
|
||||
Orientation="Vertical">
|
||||
|
||||
<Button x:Name="HomeButton"
|
||||
Height="50"
|
||||
Margin="5"
|
||||
Click="HomeButton_Click">
|
||||
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
|
||||
<iconPacks:PackIconMaterial Kind="Home" Width="20" Height="20" Margin="0,0,10,0"/>
|
||||
<TextBlock Text="Home"/>
|
||||
</StackPanel>
|
||||
</Button>
|
||||
|
||||
<Button x:Name="BookingsButton"
|
||||
Height="50"
|
||||
Margin="5"
|
||||
Click="BookingsButton_Click"
|
||||
Background="#FFBBDEFB">
|
||||
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
|
||||
<iconPacks:PackIconMaterial Kind="Airplane" Width="20" Height="20" Margin="0,0,10,0"/>
|
||||
<TextBlock Text="Meine Buchungen"/>
|
||||
</StackPanel>
|
||||
</Button>
|
||||
|
||||
<Button x:Name="SettingsButton"
|
||||
Height="50"
|
||||
Margin="5"
|
||||
Click="SettingsButton_Click">
|
||||
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
|
||||
<iconPacks:PackIconMaterial Kind="Cog" Width="20" Height="20" Margin="0,0,10,0"/>
|
||||
<TextBlock Text="Einstellungen"/>
|
||||
</StackPanel>
|
||||
</Button>
|
||||
|
||||
<Button x:Name="LogoutButton"
|
||||
Height="50"
|
||||
Margin="5"
|
||||
Background="#FFEBEB"
|
||||
BorderBrush="#FFB71C1C"
|
||||
Foreground="#D32F2F"
|
||||
FontWeight="Bold"
|
||||
Click="LogoutButton_Click">
|
||||
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
|
||||
<iconPacks:PackIconMaterial Kind="Logout" Width="20" Height="20" Margin="0,0,10,0"/>
|
||||
<TextBlock Text="Abmelden"/>
|
||||
</StackPanel>
|
||||
</Button>
|
||||
|
||||
</StackPanel>
|
||||
|
||||
<Grid Grid.Row="1" Grid.Column="1" Margin="30">
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<StackPanel Grid.Row="0"
|
||||
Orientation="Horizontal"
|
||||
VerticalAlignment="Center"
|
||||
Margin="0,0,0,20">
|
||||
<iconPacks:PackIconMaterial Kind="Airplane" Width="28" Height="28" Margin="0,0,10,0"/>
|
||||
<StackPanel>
|
||||
<TextBlock Text="Meine Buchungen"
|
||||
FontSize="24"
|
||||
FontWeight="Bold"/>
|
||||
<TextBlock Text="Übersicht über Ihre gebuchten Flüge"
|
||||
FontSize="14"
|
||||
Foreground="#666"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
|
||||
<Grid Grid.Row="1">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid Grid.Row="0" Margin="0,0,0,20">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="200"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="200"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Label Content="Von:" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,8,0"/>
|
||||
<TextBox x:Name="FromFilterTextBox" Grid.Column="1" Height="36" Margin="0,0,12,0"/>
|
||||
|
||||
<Label Content="Nach:" Grid.Column="2" VerticalAlignment="Center" Margin="0,0,8,0"/>
|
||||
<TextBox x:Name="ToFilterTextBox" Grid.Column="3" Height="36" Margin="0,0,12,0"/>
|
||||
|
||||
<Button x:Name="SearchBookingsButton"
|
||||
Grid.Column="4"
|
||||
Width="100"
|
||||
Height="36"
|
||||
Margin="0,0,0,0"
|
||||
HorizontalAlignment="Right"
|
||||
Click="SearchBookingsButton_Click">
|
||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
|
||||
<iconPacks:PackIconMaterial Kind="Magnify" Width="18" Height="18" Margin="0,0,6,0"/>
|
||||
<TextBlock Text="Suchen"/>
|
||||
</StackPanel>
|
||||
</Button>
|
||||
</Grid>
|
||||
|
||||
<DataGrid x:Name="BookingsDataGrid"
|
||||
Grid.Row="1"
|
||||
AutoGenerateColumns="False"
|
||||
IsReadOnly="True"
|
||||
CanUserAddRows="False"
|
||||
GridLinesVisibility="Horizontal"
|
||||
HeadersVisibility="Column">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Header="Buchungsnummer" Width="120" Binding="{Binding BookingNumber}"/>
|
||||
<DataGridTextColumn Header="Von" Width="80" Binding="{Binding From}"/>
|
||||
<DataGridTextColumn Header="Nach" Width="80" Binding="{Binding To}"/>
|
||||
<DataGridTextColumn Header="Flugzeug" Width="100" Binding="{Binding Flugzeug}"/>
|
||||
<DataGridTextColumn Header="Pilot" Width="100" Binding="{Binding Pilots}"/>
|
||||
<DataGridTextColumn Header="Abflug" Width="140" Binding="{Binding DepartureTime}"/>
|
||||
<DataGridTextColumn Header="Ankunft" Width="140" Binding="{Binding ArrivalTime}"/>
|
||||
<DataGridTextColumn Header="Status" Width="100" Binding="{Binding Status}"/>
|
||||
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
</Page>
|
||||
69
SkyTeam/BuchungenPage.xaml.cs
Normal file
69
SkyTeam/BuchungenPage.xaml.cs
Normal file
@@ -0,0 +1,69 @@
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
namespace SkyTeam
|
||||
{
|
||||
public partial class MeineBuchungenPage : Page
|
||||
{
|
||||
public MeineBuchungenPage()
|
||||
{
|
||||
InitializeComponent();
|
||||
LoadBookings();
|
||||
}
|
||||
|
||||
private void LoadBookings()
|
||||
{
|
||||
|
||||
var bookings = new ObservableCollection<object>
|
||||
{
|
||||
new { BookingNumber = "SKY001", From = "FRA", To = "JFK", DepartureTime = "2026-02-01 09:00", ArrivalTime = "2026-02-01 13:30", Status = "Bestätigt" },
|
||||
new { BookingNumber = "SKY002", From = "MUC", To = "LAX", DepartureTime = "2026-02-03 14:20", ArrivalTime = "2026-02-04 08:45", Status = "Geplant" }
|
||||
};
|
||||
BookingsDataGrid.ItemsSource = bookings;
|
||||
}
|
||||
|
||||
private void SearchBookingsButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
string from = FromFilterTextBox.Text;
|
||||
string to = ToFilterTextBox.Text;
|
||||
|
||||
MessageBox.Show($"Suche Flüge von {from} nach {to}", "Suche", MessageBoxButton.OK);
|
||||
}
|
||||
|
||||
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 MeineBuchungenPage());
|
||||
}
|
||||
|
||||
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 MeineBuchungenPage());
|
||||
}
|
||||
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());
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
12
SkyTeam/FlugeRepo.cs
Normal file
12
SkyTeam/FlugeRepo.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SkyTeam
|
||||
{
|
||||
class FlugeRepo
|
||||
{
|
||||
}
|
||||
}
|
||||
12
SkyTeam/FlugzeugRepo.cs
Normal file
12
SkyTeam/FlugzeugRepo.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SkyTeam
|
||||
{
|
||||
class FlugzeugRepo
|
||||
{
|
||||
}
|
||||
}
|
||||
222
SkyTeam/HomePage.xaml
Normal file
222
SkyTeam/HomePage.xaml
Normal file
@@ -0,0 +1,222 @@
|
||||
<Page x:Class="SkyTeam.NavigationPage"
|
||||
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="NavigationPage">
|
||||
|
||||
<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"
|
||||
VerticalAlignment="Center">
|
||||
|
||||
<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"
|
||||
Orientation="Vertical">
|
||||
|
||||
|
||||
<Button x:Name="HomeButton"
|
||||
Height="50"
|
||||
Margin="5"
|
||||
Click="HomeButton_Click"
|
||||
Background="#FFBBDEFB">
|
||||
<StackPanel Orientation="Horizontal"
|
||||
VerticalAlignment="Center">
|
||||
<iconPacks:PackIconMaterial Kind="Home"
|
||||
Width="20"
|
||||
Height="20"
|
||||
Margin="0,0,10,0"/>
|
||||
<TextBlock Text="Home"/>
|
||||
</StackPanel>
|
||||
</Button>
|
||||
|
||||
<Button x:Name="BookingsButton"
|
||||
Height="50"
|
||||
Margin="5"
|
||||
Click="BookingsButton_Click">
|
||||
<StackPanel Orientation="Horizontal"
|
||||
VerticalAlignment="Center">
|
||||
<iconPacks:PackIconMaterial Kind="Airplane"
|
||||
Width="20"
|
||||
Height="20"
|
||||
Margin="0,0,10,0"/>
|
||||
<TextBlock Text="Meine Buchungen"/>
|
||||
</StackPanel>
|
||||
</Button>
|
||||
|
||||
<Button x:Name="SettingsButton"
|
||||
Height="50"
|
||||
Margin="5"
|
||||
Click="SettingsButton_Click">
|
||||
<StackPanel Orientation="Horizontal"
|
||||
VerticalAlignment="Center">
|
||||
<iconPacks:PackIconMaterial Kind="Cog"
|
||||
Width="20"
|
||||
Height="20"
|
||||
Margin="0,0,10,0"/>
|
||||
<TextBlock Text="Einstellungen"/>
|
||||
</StackPanel>
|
||||
</Button>
|
||||
|
||||
<Button x:Name="LogoutButton"
|
||||
Height="50"
|
||||
Margin="5"
|
||||
Background="#FFEBEB"
|
||||
BorderBrush="#FFB71C1C"
|
||||
Foreground="#D32F2F"
|
||||
FontWeight="Bold"
|
||||
Click="LogoutButton_Click">
|
||||
<StackPanel Orientation="Horizontal"
|
||||
VerticalAlignment="Center">
|
||||
<iconPacks:PackIconMaterial Kind="Logout"
|
||||
Width="20"
|
||||
Height="20"
|
||||
Margin="0,0,10,0"/>
|
||||
<TextBlock Text="Abmelden"/>
|
||||
</StackPanel>
|
||||
</Button>
|
||||
|
||||
</StackPanel>
|
||||
|
||||
<ScrollViewer Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Margin="30"
|
||||
VerticalScrollBarVisibility="Auto">
|
||||
<StackPanel Margin="0,0,0,30">
|
||||
|
||||
<StackPanel Orientation="Horizontal"
|
||||
Margin="0,0,0,30">
|
||||
<iconPacks:PackIconMaterial Kind="AirplaneTakeoff"
|
||||
Width="48"
|
||||
Height="48"
|
||||
Margin="0,0,15,0"/>
|
||||
<StackPanel>
|
||||
<TextBlock Text="Willkommen bei Sky Team Airlines"
|
||||
FontSize="28"
|
||||
FontWeight="Bold"/>
|
||||
<TextBlock Text="Exklusive Flugservices für Privatzylinder"
|
||||
FontSize="16"
|
||||
Foreground="Gray"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
|
||||
<Border Background="#F8F9FA"
|
||||
Padding="25"
|
||||
CornerRadius="8"
|
||||
Margin="0,0,0,25">
|
||||
<TextBlock Text="Sky Team Airlines bietet konfortable Veranstaltung von Privatjets für Geschäftsreisende. Unsere moderne Flotte mit den neuesten Businessjets garantiert Ihnen maximale Komfort auf Ihren Flügen."
|
||||
FontSize="14"
|
||||
LineHeight="22"
|
||||
TextWrapping="Wrap"/>
|
||||
</Border>
|
||||
|
||||
<TextBlock Text="Unsere Services"
|
||||
FontSize="20"
|
||||
FontWeight="Bold"
|
||||
Margin="0,0,15,0"/>
|
||||
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Border Grid.Column="0"
|
||||
Margin="0,0,15,0"
|
||||
Padding="20"
|
||||
Background="#E3F2FD"
|
||||
CornerRadius="8">
|
||||
<StackPanel>
|
||||
<iconPacks:PackIconMaterial Kind="AccountGroup"
|
||||
Width="32"
|
||||
Height="32"
|
||||
Foreground="#1E88E5"/>
|
||||
<TextBlock Text="Persönliche Kundenbetreuung"
|
||||
FontSize="16"
|
||||
FontWeight="Bold"
|
||||
Margin="0,10,0,5"/>
|
||||
<TextBlock Text="Dedizierte Flugplanung und individuelle Bedürfnisse"
|
||||
FontSize="13"
|
||||
Foreground="Gray"
|
||||
TextWrapping="Wrap"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
|
||||
<Border Grid.Column="1"
|
||||
Padding="20"
|
||||
Background="#E8F5E8"
|
||||
CornerRadius="8">
|
||||
<StackPanel>
|
||||
<iconPacks:PackIconMaterial Kind="Database"
|
||||
Width="32"
|
||||
Height="32"
|
||||
Foreground="#388E3C"/>
|
||||
<TextBlock Text="Sichere Datenverwaltung"
|
||||
FontSize="16"
|
||||
FontWeight="Bold"
|
||||
Margin="0,10,0,5"/>
|
||||
<TextBlock Text="Vollständiger CRUD für Kunden, Flüge, Piloten"
|
||||
FontSize="13"
|
||||
Foreground="Gray"
|
||||
TextWrapping="Wrap"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</Grid>
|
||||
|
||||
<StackPanel Orientation="Horizontal"
|
||||
HorizontalAlignment="Center"
|
||||
Margin="0,40,0,0">
|
||||
<Button Width="200"
|
||||
Height="50"
|
||||
Background="#FF1E88E5"
|
||||
Foreground="White"
|
||||
FontSize="16"
|
||||
FontWeight="Bold"
|
||||
Click="BookFlightButton_Click">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<iconPacks:PackIconMaterial Kind="Airplane"
|
||||
Width="24"
|
||||
Height="24"
|
||||
Margin="0,0,12,0"/>
|
||||
<TextBlock Text="Jetzt Flug buchen"/>
|
||||
</StackPanel>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
|
||||
</Grid>
|
||||
</Page>
|
||||
49
SkyTeam/HomePage.xaml.cs
Normal file
49
SkyTeam/HomePage.xaml.cs
Normal file
@@ -0,0 +1,49 @@
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace SkyTeam
|
||||
{
|
||||
public partial class NavigationPage : Page
|
||||
{
|
||||
public NavigationPage()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
}
|
||||
|
||||
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 MeineBuchungenPage());
|
||||
}
|
||||
|
||||
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 MeineBuchungenPage());
|
||||
}
|
||||
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());
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
114
SkyTeam/LogInPage.xaml
Normal file
114
SkyTeam/LogInPage.xaml
Normal file
@@ -0,0 +1,114 @@
|
||||
<Page x:Class="SkyTeam.LogInPage"
|
||||
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="LogInPage">
|
||||
|
||||
<Grid Margin="40,20">
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<StackPanel Grid.Row="0"
|
||||
Orientation="Horizontal"
|
||||
VerticalAlignment="Center"
|
||||
HorizontalAlignment="Center"
|
||||
Margin="0,0,0,50">
|
||||
<iconPacks:PackIconMaterial Kind="Account"
|
||||
Width="36"
|
||||
Height="36"
|
||||
Margin="0,0,15,0"/>
|
||||
<StackPanel>
|
||||
<TextBlock Text="Sky Team"
|
||||
FontSize="36"
|
||||
FontWeight="Bold"/>
|
||||
<TextBlock Text="Melden Sie sich an um zu starten"
|
||||
FontSize="14"
|
||||
Foreground="#666"
|
||||
Margin="0,5,0,0"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
|
||||
<!-- Form Container -->
|
||||
<Border Grid.Row="1"
|
||||
Background="White"
|
||||
CornerRadius="16"
|
||||
Padding="50"
|
||||
BorderBrush="#E0E0E0"
|
||||
BorderThickness="1"
|
||||
VerticalAlignment="Center"
|
||||
HorizontalAlignment="Center">
|
||||
<Grid>
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="24"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="40"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Label Content="Benutzername:"
|
||||
Grid.Row="0" Grid.Column="0"
|
||||
VerticalAlignment="Center"
|
||||
Margin="0,0,12,8"
|
||||
FontSize="14"
|
||||
FontWeight="SemiBold"/>
|
||||
<TextBox x:Name="BenutzernameTextBox"
|
||||
Grid.Row="1" Grid.ColumnSpan="2"
|
||||
Height="45"
|
||||
FontSize="14"
|
||||
Margin="0,0,0,0"/>
|
||||
|
||||
<Label Content="Passwort:"
|
||||
Grid.Row="3" Grid.Column="0"
|
||||
VerticalAlignment="Center"
|
||||
Margin="0,0,12,8"
|
||||
FontSize="14"
|
||||
FontWeight="SemiBold"/>
|
||||
<PasswordBox x:Name="PasswortTextBox"
|
||||
Grid.Row="4" Grid.ColumnSpan="2"
|
||||
Height="45"
|
||||
FontSize="14"
|
||||
Margin="0,0,0,0"/>
|
||||
|
||||
<StackPanel Grid.Row="6"
|
||||
Grid.ColumnSpan="2"
|
||||
Orientation="Horizontal"
|
||||
HorizontalAlignment="Center"
|
||||
Margin="0,20,0,0">
|
||||
<Button Content="Login"
|
||||
Width="140"
|
||||
Height="48"
|
||||
Margin="0,0,20,0"
|
||||
Background="#FF1E88E5"
|
||||
Foreground="White"
|
||||
FontSize="15"
|
||||
FontWeight="Bold"
|
||||
Click="LogInButton_Click"/>
|
||||
<Button Content="Registrieren"
|
||||
Width="140"
|
||||
Height="48"
|
||||
Background="Transparent"
|
||||
BorderBrush="#DDD"
|
||||
BorderThickness="1"
|
||||
Foreground="#666"
|
||||
FontSize="15"
|
||||
FontWeight="SemiBold"
|
||||
Click="anmeldungsButton_Click"/>
|
||||
</StackPanel>
|
||||
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
</Grid>
|
||||
</Page>
|
||||
46
SkyTeam/LogInPage.xaml.cs
Normal file
46
SkyTeam/LogInPage.xaml.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
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 LogInPage.xaml
|
||||
/// </summary>
|
||||
public partial class LogInPage : Page
|
||||
{
|
||||
public LogInPage()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private void anmeldungsButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
((MainWindow)Application.Current.MainWindow).MainFrame.Navigate(new RegistrationPage());
|
||||
|
||||
}
|
||||
|
||||
private void LogInButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
((MainWindow)Application.Current.MainWindow).MainFrame.Navigate(new NavigationPage());
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5,8 +5,19 @@
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:SkyTeam"
|
||||
mc:Ignorable="d"
|
||||
Title="MainWindow" Height="450" Width="800">
|
||||
<Grid>
|
||||
Title="Sky Team Airlines"
|
||||
Height="700"
|
||||
Width="1100"
|
||||
WindowStartupLocation="CenterScreen"
|
||||
WindowState="Maximized">
|
||||
|
||||
<Window.Effect>
|
||||
<DropShadowEffect/>
|
||||
</Window.Effect>
|
||||
|
||||
<Grid x:Name="Main">
|
||||
|
||||
<Frame x:Name="MainFrame"
|
||||
NavigationUIVisibility="Hidden"/>
|
||||
</Grid>
|
||||
</Window>
|
||||
|
||||
@@ -1,24 +1,14 @@
|
||||
using System.Text;
|
||||
using System.Windows;
|
||||
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 MainWindow.xaml
|
||||
/// </summary>
|
||||
public partial class MainWindow : Window
|
||||
{
|
||||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
<<<<<<< HEAD
|
||||
TestDatabaseConnection();
|
||||
}
|
||||
|
||||
@@ -31,6 +21,19 @@ namespace SkyTeam
|
||||
MessageBox.Show("Datenbank ist verfügbar!", "Erfolg", MessageBoxButton.OK, MessageBoxImage.Information);
|
||||
else
|
||||
MessageBox.Show("Probleme mit der Verbindung.", "Fehler", MessageBoxButton.OK, MessageBoxImage.Error);
|
||||
=======
|
||||
ShowLoginPage();
|
||||
}
|
||||
|
||||
private void ShowLoginPage()
|
||||
{
|
||||
MainFrame.Navigate(new LogInPage());
|
||||
}
|
||||
|
||||
public void NavigateToApp()
|
||||
{
|
||||
MainFrame.Navigate(new NavigationPage());
|
||||
>>>>>>> deaa68880afaf3dd53903180eef7a43c3e23056a
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
12
SkyTeam/PilotenRepo.cs
Normal file
12
SkyTeam/PilotenRepo.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SkyTeam
|
||||
{
|
||||
class PilotenRepo
|
||||
{
|
||||
}
|
||||
}
|
||||
109
SkyTeam/Regestrieren.xaml
Normal file
109
SkyTeam/Regestrieren.xaml
Normal file
@@ -0,0 +1,109 @@
|
||||
<Page x:Class="SkyTeam.RegistrationPage"
|
||||
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="Registrierungsseite">
|
||||
|
||||
<Grid Margin="40,20">
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<StackPanel Grid.Row="0"
|
||||
Orientation="Horizontal"
|
||||
VerticalAlignment="Center"
|
||||
Margin="0,0,0,40">
|
||||
<iconPacks:PackIconMaterial Kind="AccountPlus"
|
||||
Width="32"
|
||||
Height="32"
|
||||
Margin="0,0,15,0"/>
|
||||
<StackPanel>
|
||||
<TextBlock Text="Registrieren"
|
||||
FontSize="28"
|
||||
FontWeight="Bold"/>
|
||||
<TextBlock Text="Erstellen Sie Ihren Sky Team Account"
|
||||
FontSize="14"
|
||||
Foreground="#666"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
|
||||
|
||||
<Border Grid.Row="1"
|
||||
Background="White"
|
||||
CornerRadius="12"
|
||||
Padding="40"
|
||||
BorderBrush="#E0E0E0"
|
||||
BorderThickness="1"
|
||||
VerticalAlignment="Center"
|
||||
HorizontalAlignment="Center">
|
||||
<Grid>
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="60"/>
|
||||
|
||||
<RowDefinition Height="40"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="220"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Label Content="Vorname:"
|
||||
Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,12,8"/>
|
||||
<TextBox x:Name="FirstNameTextBox" Grid.Row="0" Grid.Column="1" Margin="0,0,0,8"/>
|
||||
|
||||
<Label Content="Nachname:" Grid.Row="1" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,12,8"/>
|
||||
<TextBox x:Name="LastNameTextBox" Grid.Row="1" Grid.Column="1" Margin="0,0,0,8"/>
|
||||
|
||||
<Label Content="E-Mail:" Grid.Row="2" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,12,8"/>
|
||||
<TextBox x:Name="EmailTextBox" Grid.Row="2" Grid.Column="1" Margin="0,0,0,8"/>
|
||||
|
||||
<Label Content="Telefonnummer:" Grid.Row="3" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,12,8"/>
|
||||
<TextBox x:Name="PhoneNumberTextBox" Grid.Row="3" Grid.Column="1" Margin="0,0,0,8"/>
|
||||
|
||||
<Label Content="Stadt:" Grid.Row="4" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,12,8"/>
|
||||
<TextBox x:Name="CityTextBox" Grid.Row="4" Grid.Column="1" Margin="0,0,0,8"/>
|
||||
|
||||
<Label Content="Land:" Grid.Row="5" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,12,8"/>
|
||||
<TextBox x:Name="CountryTextBox" Grid.Row="5" Grid.Column="1" Margin="0,0,0,8"/>
|
||||
|
||||
<Label Content="Passwort:" Grid.Row="6" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,12,0"/>
|
||||
<PasswordBox x:Name="PasswordBox" Grid.Row="6" VerticalAlignment="Top" Margin="1,4,0,0" Height="21" Grid.Column="1"/>
|
||||
|
||||
<StackPanel Grid.Row="9"
|
||||
Grid.ColumnSpan="2"
|
||||
Orientation="Horizontal"
|
||||
HorizontalAlignment="Center">
|
||||
<Button Content="Registrieren"
|
||||
Width="130"
|
||||
Height="42"
|
||||
Margin="0,0,20,0"
|
||||
Background="#FF1E88E5"
|
||||
Foreground="White"
|
||||
FontWeight="Bold"
|
||||
FontSize="14"
|
||||
Click="RegisterButton_Click"/>
|
||||
<Button Content="Abbrechen"
|
||||
Width="130"
|
||||
Height="42"
|
||||
Background="#F5F5F5"
|
||||
BorderBrush="#DDD"
|
||||
Click="CancelButton_Click"/>
|
||||
</StackPanel>
|
||||
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
</Grid>
|
||||
</Page>
|
||||
44
SkyTeam/Regestrieren.xaml.cs
Normal file
44
SkyTeam/Regestrieren.xaml.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
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 Page1.xaml
|
||||
/// </summary>
|
||||
public partial class RegistrationPage : Page
|
||||
{
|
||||
public RegistrationPage()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
|
||||
private void RegisterButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void CancelButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
((MainWindow)Application.Current.MainWindow).MainFrame.Navigate(new LogInPage());
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
180
SkyTeam/SettingsPage.xaml
Normal file
180
SkyTeam/SettingsPage.xaml
Normal file
@@ -0,0 +1,180 @@
|
||||
<Page x:Class="SkyTeam.SettingsPage"
|
||||
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="SettingsPage">
|
||||
|
||||
<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"
|
||||
VerticalAlignment="Center">
|
||||
<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"
|
||||
Orientation="Vertical">
|
||||
|
||||
<Button x:Name="HomeButton"
|
||||
Height="50"
|
||||
Margin="5"
|
||||
Click="HomeButton_Click">
|
||||
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
|
||||
<iconPacks:PackIconMaterial Kind="Home" Width="20" Height="20" Margin="0,0,10,0"/>
|
||||
<TextBlock Text="Home"/>
|
||||
</StackPanel>
|
||||
</Button>
|
||||
|
||||
<Button x:Name="BookingsButton"
|
||||
Height="50"
|
||||
Margin="5"
|
||||
Click="BookingsButton_Click">
|
||||
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
|
||||
<iconPacks:PackIconMaterial Kind="Airplane" Width="20" Height="20" Margin="0,0,10,0"/>
|
||||
<TextBlock Text="Meine Buchungen"/>
|
||||
</StackPanel>
|
||||
</Button>
|
||||
|
||||
<Button x:Name="SettingsButton"
|
||||
Height="50"
|
||||
Margin="5"
|
||||
Click="SettingsButton_Click"
|
||||
Background="#FFBBDEFB">
|
||||
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
|
||||
<iconPacks:PackIconMaterial Kind="Cog" Width="20" Height="20" Margin="0,0,10,0"/>
|
||||
<TextBlock Text="Einstellungen"/>
|
||||
</StackPanel>
|
||||
</Button>
|
||||
|
||||
<Button x:Name="LogoutButton"
|
||||
Height="50"
|
||||
Margin="5"
|
||||
Background="#FFEBEB"
|
||||
BorderBrush="#FFB71C1C"
|
||||
Foreground="#D32F2F"
|
||||
FontWeight="Bold"
|
||||
Click="LogoutButton_Click">
|
||||
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
|
||||
<iconPacks:PackIconMaterial Kind="Logout" Width="20" Height="20" Margin="0,0,10,0"/>
|
||||
<TextBlock Text="Abmelden"/>
|
||||
</StackPanel>
|
||||
</Button>
|
||||
|
||||
</StackPanel>
|
||||
|
||||
<Grid Grid.Row="1" Grid.Column="1" Margin="30">
|
||||
|
||||
<StackPanel Orientation="Horizontal"
|
||||
VerticalAlignment="Center"
|
||||
Margin="0,0,0,25">
|
||||
<iconPacks:PackIconMaterial Kind="Cog" Width="32" Height="32" Margin="0,0,12,0"/>
|
||||
<StackPanel>
|
||||
<TextBlock Text="Einstellungen"
|
||||
FontSize="28"
|
||||
FontWeight="Bold"/>
|
||||
<TextBlock Text="Passen Sie Ihr Sky Team Erlebnis an"
|
||||
FontSize="16"
|
||||
Foreground="#666"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
|
||||
<Border Background="White"
|
||||
CornerRadius="12"
|
||||
Padding="30"
|
||||
BorderBrush="#E0E0E0"
|
||||
BorderThickness="1"
|
||||
Margin="0,0,0,25"
|
||||
VerticalAlignment="Top">
|
||||
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
|
||||
<iconPacks:PackIconMaterial Kind="WeatherNight" Width="28" Height="28" Margin="0,0,15,0"/>
|
||||
<StackPanel VerticalAlignment="Center">
|
||||
<TextBlock Text="Dark Mode"
|
||||
FontSize="18"
|
||||
FontWeight="Bold"/>
|
||||
<TextBlock Text="Aktivieren Sie den dunklen Modus für die Anwendung."
|
||||
FontSize="14"
|
||||
Foreground="#666"
|
||||
Margin="0,4,0,0"/>
|
||||
</StackPanel>
|
||||
<ToggleButton x:Name="DarkModeToggle"
|
||||
Width="90"
|
||||
Height="36"
|
||||
Margin="30,0,0,0"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Center"
|
||||
Background="#F5F5F5"
|
||||
BorderBrush="#DDD"
|
||||
Content="Aus"
|
||||
FontSize="14"
|
||||
FontWeight="SemiBold"
|
||||
Checked="DarkModeToggle_Checked"
|
||||
Unchecked="DarkModeToggle_Unchecked"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
|
||||
<Border Background="#FEF2F2"
|
||||
CornerRadius="12"
|
||||
Padding="30"
|
||||
BorderBrush="#FFB71C1C"
|
||||
BorderThickness="1">
|
||||
<StackPanel>
|
||||
<StackPanel Orientation="Horizontal" Margin="0,0,0,15">
|
||||
<iconPacks:PackIconMaterial Kind="AlertCircle" Width="28" Height="28" Foreground="#D32F2F" Margin="0,0,12,0"/>
|
||||
<StackPanel>
|
||||
<TextBlock Text="Konto löschen"
|
||||
FontSize="20"
|
||||
FontWeight="Bold"
|
||||
Foreground="#D32F2F"/>
|
||||
<TextBlock Text="⚠️ Achtung: Diese Aktion kann nicht rückgängig gemacht werden!"
|
||||
FontSize="14"
|
||||
Foreground="#B71C1C"
|
||||
Margin="0,5,0,0"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
|
||||
<Button x:Name="DeleteAccountButton"
|
||||
Width="200"
|
||||
Height="45"
|
||||
HorizontalAlignment="Center"
|
||||
Background="#D32F2F"
|
||||
Foreground="White"
|
||||
FontSize="15"
|
||||
FontWeight="Bold"
|
||||
Click="DeleteAccountButton_Click">
|
||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
|
||||
<iconPacks:PackIconMaterial Kind="AccountRemove" Width="20" Height="20" Margin="0,0,8,0"/>
|
||||
<TextBlock Text="Konto endgültig löschen"/>
|
||||
</StackPanel>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
</Page>
|
||||
88
SkyTeam/SettingsPage.xaml.cs
Normal file
88
SkyTeam/SettingsPage.xaml.cs
Normal file
@@ -0,0 +1,88 @@
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Media;
|
||||
|
||||
namespace SkyTeam
|
||||
{
|
||||
public partial class SettingsPage : Page
|
||||
{
|
||||
private bool _isDark = false;
|
||||
|
||||
public SettingsPage()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void DarkModeToggle_Checked(object sender, RoutedEventArgs e)
|
||||
{
|
||||
_isDark = true;
|
||||
DarkModeToggle.Content = "An";
|
||||
|
||||
if (Window.GetWindow(this) is MainWindow mainWindow)
|
||||
{
|
||||
mainWindow.Background = Brushes.Black;
|
||||
}
|
||||
}
|
||||
|
||||
private void DarkModeToggle_Unchecked(object sender, RoutedEventArgs e)
|
||||
{
|
||||
_isDark = false;
|
||||
DarkModeToggle.Content = "Aus";
|
||||
if (Window.GetWindow(this) is MainWindow mainWindow)
|
||||
{
|
||||
mainWindow.Background = Brushes.White;
|
||||
}
|
||||
}
|
||||
|
||||
private void DeleteAccountButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var result = MessageBox.Show(
|
||||
"Sind Sie sicher, dass Sie Ihr Konto löschen möchten?\nDiese Aktion kann nicht rückgängig gemacht werden!",
|
||||
"Konto löschen",
|
||||
MessageBoxButton.YesNo,
|
||||
MessageBoxImage.Warning);
|
||||
|
||||
if (result == MessageBoxResult.Yes)
|
||||
{
|
||||
|
||||
MessageBox.Show("Konto wurde gelöscht.", "Erfolg", MessageBoxButton.OK, MessageBoxImage.Information);
|
||||
((MainWindow)Application.Current.MainWindow).MainFrame.Navigate(new LogInPage());
|
||||
|
||||
}
|
||||
}
|
||||
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 MeineBuchungenPage());
|
||||
}
|
||||
|
||||
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 MeineBuchungenPage());
|
||||
}
|
||||
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());
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,11 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<<<<<<< HEAD
|
||||
<PackageReference Include="MySql.Data" Version="9.6.0" />
|
||||
=======
|
||||
<PackageReference Include="MahApps.Metro.IconPacks" Version="6.2.1" />
|
||||
>>>>>>> deaa68880afaf3dd53903180eef7a43c3e23056a
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
12
SkyTeam/mitarbeiterRepo.cs
Normal file
12
SkyTeam/mitarbeiterRepo.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SkyTeam
|
||||
{
|
||||
class mitarbeiterRepo
|
||||
{
|
||||
}
|
||||
}
|
||||
13
SkyTeam/session.cs
Normal file
13
SkyTeam/session.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SkyTeam
|
||||
{
|
||||
class session
|
||||
{
|
||||
int selectedId { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user