ErstChanges , braucht immer noch debug ,wahrscheinlich später
This commit is contained in:
112
SkyTeam/BuchungenPage.xaml
Normal file
112
SkyTeam/BuchungenPage.xaml
Normal file
@@ -0,0 +1,112 @@
|
||||
<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 Margin="20">
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
|
||||
<StackPanel Grid.Row="0"
|
||||
Orientation="Horizontal"
|
||||
VerticalAlignment="Center"
|
||||
Margin="0,0,0,15">
|
||||
<iconPacks:PackIconMaterial Kind="Airplane"
|
||||
Width="28"
|
||||
Height="28"
|
||||
Margin="0,0,10,0"/>
|
||||
<StackPanel>
|
||||
<TextBlock Text="Meine Buchungen"
|
||||
FontSize="22"
|
||||
FontWeight="Bold"/>
|
||||
<TextBlock Text="Übersicht über Ihre gebuchten Flüge"
|
||||
FontSize="12"
|
||||
Foreground="Gray"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
|
||||
|
||||
<Grid Grid.Row="1">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
|
||||
<Grid Grid.Row="0"
|
||||
Margin="0,0,0,10">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="200"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="200"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Label Content="Von:"
|
||||
Grid.Column="0"
|
||||
VerticalAlignment="Center"
|
||||
Margin="0,0,5,0"/>
|
||||
<TextBox x:Name="FromFilterTextBox"
|
||||
Grid.Column="1"
|
||||
Margin="0,0,15,0"/>
|
||||
|
||||
<Label Content="Nach:"
|
||||
Grid.Column="2"
|
||||
VerticalAlignment="Center"
|
||||
Margin="0,0,5,0"/>
|
||||
<TextBox x:Name="ToFilterTextBox"
|
||||
Grid.Column="3"
|
||||
Margin="0,0,15,0"/>
|
||||
|
||||
<Button x:Name="SearchBookingsButton"
|
||||
Grid.Column="4"
|
||||
Height="28"
|
||||
Padding="10,0"
|
||||
Click="SearchBookingsButton_Click">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<iconPacks:PackIconMaterial Kind="Magnify"
|
||||
Width="18"
|
||||
Height="18"
|
||||
Margin="0,0,5,0"/>
|
||||
<TextBlock Text="Suchen"/>
|
||||
</StackPanel>
|
||||
</Button>
|
||||
</Grid>
|
||||
|
||||
<DataGrid x:Name="BookingsDataGrid"
|
||||
Grid.Row="1"
|
||||
AutoGenerateColumns="False"
|
||||
IsReadOnly="True"
|
||||
CanUserAddRows="False">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Header="Buchungsnummer"
|
||||
|
||||
Width="*"/>
|
||||
<DataGridTextColumn Header="Von"
|
||||
|
||||
Width="*"/>
|
||||
<DataGridTextColumn Header="Nach"
|
||||
|
||||
Width="*"/>
|
||||
<DataGridTextColumn Header="Abflug"
|
||||
|
||||
Width="*"/>
|
||||
<DataGridTextColumn Header="Ankunft"
|
||||
Width="*"/>
|
||||
<DataGridTextColumn Header="Status"
|
||||
|
||||
Width="*"/>
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
</Page>
|
||||
34
SkyTeam/BuchungenPage.xaml.cs
Normal file
34
SkyTeam/BuchungenPage.xaml.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
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
|
||||
{
|
||||
}
|
||||
}
|
||||
213
SkyTeam/HomePage.xaml
Normal file
213
SkyTeam/HomePage.xaml
Normal file
@@ -0,0 +1,213 @@
|
||||
<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">
|
||||
|
||||
<!-- Home button (selected) -->
|
||||
<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>
|
||||
|
||||
</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,30,0,0">
|
||||
<Button Width="160"
|
||||
Height="45"
|
||||
Margin="0,0,15,0"
|
||||
Background="#FF1E88E5"
|
||||
Foreground="White"
|
||||
FontSize="16"
|
||||
FontWeight="Bold"
|
||||
Click="BookFlightButton_Click">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<iconPacks:PackIconMaterial Kind="Airplane"
|
||||
Width="20"
|
||||
Height="20"
|
||||
Margin="0,0,8,0"/>
|
||||
<TextBlock Text="Jetzt Flug buchen"/>
|
||||
</StackPanel>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
|
||||
</Grid>
|
||||
</Page>
|
||||
34
SkyTeam/HomePage.xaml.cs
Normal file
34
SkyTeam/HomePage.xaml.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
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)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void BookingsButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void SettingsButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void BookFlightButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,26 +1,45 @@
|
||||
<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>
|
||||
<Grid Margin="20">
|
||||
|
||||
|
||||
<TextBlock Text="Sky Team"
|
||||
FontSize="36"
|
||||
FontStyle="Oblique"
|
||||
HorizontalAlignment="Center"
|
||||
Margin="0,40,0,40"/>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
|
||||
<Grid VerticalAlignment="Center"
|
||||
<!-- Header -->
|
||||
<StackPanel Grid.Row="0"
|
||||
Orientation="Horizontal"
|
||||
VerticalAlignment="Center"
|
||||
HorizontalAlignment="Center"
|
||||
Margin="0,0,0,30">
|
||||
<iconPacks:PackIconMaterial Kind="Account"
|
||||
Width="28"
|
||||
Height="28"
|
||||
Margin="0,0,10,0"/>
|
||||
<StackPanel>
|
||||
<TextBlock Text="Sky Team"
|
||||
FontSize="28"
|
||||
FontWeight="Bold"/>
|
||||
<TextBlock Text="Melden Sie sich an um zu starten"
|
||||
FontSize="12"
|
||||
Foreground="Gray"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
|
||||
<!-- Form -->
|
||||
<Grid Grid.Row="1"
|
||||
VerticalAlignment="Center"
|
||||
HorizontalAlignment="Center">
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
@@ -28,7 +47,6 @@
|
||||
<ColumnDefinition Width="200"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
|
||||
<Label Content="Benutzername:"
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
@@ -39,29 +57,25 @@
|
||||
Grid.Column="1"
|
||||
Margin="0,0,0,10"/>
|
||||
|
||||
|
||||
<Label Content="Passwort:"
|
||||
Grid.Row="1"
|
||||
Grid.Column="0"
|
||||
Margin="0,0,10,10"/>
|
||||
Margin="0,0,10,20"/>
|
||||
|
||||
<PasswordBox x:Name="PasswortTextBox"
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Margin="0,0,0,10"/>
|
||||
Grid.Row="2"
|
||||
Grid.ColumnSpan="2"
|
||||
Margin="0,0,0,20"/>
|
||||
|
||||
|
||||
<StackPanel Grid.Row="2"
|
||||
<!-- Buttons -->
|
||||
<StackPanel Grid.Row="3"
|
||||
Grid.ColumnSpan="2"
|
||||
Orientation="Horizontal"
|
||||
HorizontalAlignment="Center"
|
||||
Margin="0,20,0,0">
|
||||
|
||||
HorizontalAlignment="Center">
|
||||
<Button Content="Login"
|
||||
Width="110"
|
||||
Margin="0,0,20,0"
|
||||
Click="LogInButton"/>
|
||||
|
||||
<Button Content="Registrieren"
|
||||
Width="110"
|
||||
Click="anmeldungsButton"/>
|
||||
|
||||
@@ -5,20 +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" Cursor="Arrow">
|
||||
Title="Sky Team Airlines"
|
||||
Height="700"
|
||||
Width="1100"
|
||||
WindowStartupLocation="CenterScreen"
|
||||
WindowState="Maximized">
|
||||
|
||||
<Window.Effect>
|
||||
<DropShadowEffect/>
|
||||
</Window.Effect>
|
||||
|
||||
<Grid x:Name="Main">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
|
||||
|
||||
<Frame x:Name="MainFrame"
|
||||
NavigationUIVisibility="Hidden"/>
|
||||
<Frame x:Name="LogIn"
|
||||
NavigationUIVisibility="Hidden"/>
|
||||
|
||||
NavigationUIVisibility="Hidden"/>
|
||||
</Grid>
|
||||
</Window>
|
||||
|
||||
@@ -1,31 +1,24 @@
|
||||
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();
|
||||
MainFrame.Navigate(new LogInPage());
|
||||
|
||||
ShowLoginPage();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private void ShowLoginPage()
|
||||
{
|
||||
MainFrame.Navigate(new LogInPage());
|
||||
}
|
||||
|
||||
public void NavigateToApp()
|
||||
{
|
||||
MainFrame.Navigate(new NavigationPage());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -1,14 +1,38 @@
|
||||
<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 Height="346">
|
||||
<Grid Margin="20">
|
||||
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid VerticalAlignment="Center"
|
||||
HorizontalAlignment="Center" Height="300">
|
||||
|
||||
<StackPanel Grid.Row="0"
|
||||
Orientation="Horizontal"
|
||||
VerticalAlignment="Center"
|
||||
Margin="0,0,0,30">
|
||||
<iconPacks:PackIconMaterial Kind="AccountPlus"
|
||||
Width="28"
|
||||
Height="28"
|
||||
Margin="0,0,10,0"/>
|
||||
<StackPanel>
|
||||
<TextBlock Text="Registrieren"
|
||||
FontSize="22"
|
||||
FontWeight="Bold"/>
|
||||
<TextBlock Text="Erstellen Sie Ihren Sky Team Account"
|
||||
FontSize="12"
|
||||
Foreground="Gray"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
|
||||
<Grid Grid.Row="1"
|
||||
VerticalAlignment="Center"
|
||||
HorizontalAlignment="Center">
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
@@ -18,6 +42,7 @@
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
@@ -25,33 +50,82 @@
|
||||
<ColumnDefinition Width="200"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Label Content="Vorname:" Grid.Row="0" Grid.Column="0" Margin="0,0,10,10"/>
|
||||
<TextBox x:Name="FirstNameTextBox" Grid.Row="0" Grid.Column="1" Margin="0,0,0,10"/>
|
||||
<Label Content="Vorname:"
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
Margin="0,0,10,10"/>
|
||||
<TextBox x:Name="FirstNameTextBox"
|
||||
Grid.Row="0"
|
||||
Grid.Column="1"
|
||||
Margin="0,0,0,10"/>
|
||||
|
||||
<Label Content="Nachname:" Grid.Row="1" Grid.Column="0" Margin="0,0,10,10"/>
|
||||
<TextBox x:Name="LastNameTextBox" Grid.Row="1" Grid.Column="1" Margin="0,0,0,10"/>
|
||||
<Label Content="Nachname:"
|
||||
Grid.Row="1"
|
||||
Grid.Column="0"
|
||||
Margin="0,0,10,10"/>
|
||||
<TextBox x:Name="LastNameTextBox"
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Margin="0,0,0,10"/>
|
||||
|
||||
<Label Content="E-Mail:" Grid.Row="2" Grid.Column="0" Margin="0,0,10,10"/>
|
||||
<TextBox x:Name="EmailTextBox" Grid.Row="2" Grid.Column="1" Margin="0,0,0,10"/>
|
||||
<Label Content="E-Mail:"
|
||||
Grid.Row="2"
|
||||
Grid.Column="0"
|
||||
Margin="0,0,10,10"/>
|
||||
<TextBox x:Name="EmailTextBox"
|
||||
Grid.Row="2"
|
||||
Grid.Column="1"
|
||||
Margin="0,0,0,10"/>
|
||||
|
||||
<Label Content="Telefonnummer:" Grid.Row="3" Grid.Column="0" Margin="0,0,10,10"/>
|
||||
<TextBox x:Name="PhoneNumberTextBox" Grid.Row="3" Grid.Column="1" Margin="0,0,0,10"/>
|
||||
<Label Content="Telefonnummer:"
|
||||
Grid.Row="3"
|
||||
Grid.Column="0"
|
||||
Margin="0,0,10,10"/>
|
||||
<TextBox x:Name="PhoneNumberTextBox"
|
||||
Grid.Row="3"
|
||||
Grid.Column="1"
|
||||
Margin="0,0,0,10"/>
|
||||
|
||||
<Label Content="Stadt:" Grid.Row="4" Grid.Column="0" Margin="0,0,10,10"/>
|
||||
<TextBox x:Name="CityTextBox" Grid.Row="4" Grid.Column="1" Margin="0,0,0,10"/>
|
||||
<Label Content="Stadt:"
|
||||
Grid.Row="4"
|
||||
Grid.Column="0"
|
||||
Margin="0,0,10,10"/>
|
||||
<TextBox x:Name="CityTextBox"
|
||||
Grid.Row="4"
|
||||
Grid.Column="1"
|
||||
Margin="0,0,0,10"/>
|
||||
|
||||
<Label Content="Land:" Grid.Row="5" Grid.Column="0" Margin="0,0,10,10"/>
|
||||
<TextBox x:Name="CountryTextBox" Grid.Row="5" Grid.Column="1" Margin="0,0,0,10"/>
|
||||
<Label Content="Land:"
|
||||
Grid.Row="5"
|
||||
Grid.Column="0"
|
||||
Margin="0,0,10,10"/>
|
||||
<TextBox x:Name="CountryTextBox"
|
||||
Grid.Row="5"
|
||||
Grid.Column="1"
|
||||
Margin="0,0,0,10"/>
|
||||
|
||||
<Label Content="Passwort:" Grid.Row="6" Grid.Column="0" Margin="0,0,10,10"/>
|
||||
<PasswordBox x:Name="PasswordBox" Grid.Row="6" Grid.Column="1" Margin="0,0,0,10"/>
|
||||
<Label Content="Passwort:"
|
||||
Grid.Row="6"
|
||||
Grid.Column="0"
|
||||
Margin="0,0,10,20"/>
|
||||
|
||||
<Button Content="Registrieren"
|
||||
Grid.Row="6"
|
||||
Width="140"
|
||||
Margin="22,40,0,-20"
|
||||
HorizontalAlignment="Left"
|
||||
Click="RegisterButton_Click" Grid.Column="1"/>
|
||||
<PasswordBox x:Name="PasswordBox"
|
||||
Grid.Row="7"
|
||||
Grid.ColumnSpan="2"
|
||||
Margin="0,0,0,20"/>
|
||||
|
||||
<StackPanel Grid.Row="8"
|
||||
Grid.ColumnSpan="2"
|
||||
Orientation="Horizontal"
|
||||
HorizontalAlignment="Center">
|
||||
<Button Content="Registrieren"
|
||||
Width="120"
|
||||
Margin="0,0,20,0"
|
||||
Click="RegisterButton_Click"/>
|
||||
<Button Content="Abbrechen"
|
||||
Width="120"
|
||||
Click="CancelButton_Click"/>
|
||||
</StackPanel>
|
||||
|
||||
</Grid>
|
||||
|
||||
|
||||
@@ -33,6 +33,11 @@ namespace SkyTeam
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void CancelButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
117
SkyTeam/SettingsPage.xaml
Normal file
117
SkyTeam/SettingsPage.xaml
Normal file
@@ -0,0 +1,117 @@
|
||||
<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 x:Name="RootGrid"
|
||||
Margin="20"
|
||||
Background="White">
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
|
||||
<StackPanel Grid.Row="0"
|
||||
Orientation="Horizontal"
|
||||
VerticalAlignment="Center"
|
||||
Margin="0,0,0,15">
|
||||
<iconPacks:PackIconMaterial Kind="Cog"
|
||||
Width="28"
|
||||
Height="28"
|
||||
Margin="0,0,10,0"/>
|
||||
<StackPanel>
|
||||
<TextBlock Text="Einstellungen"
|
||||
FontSize="22"
|
||||
FontWeight="Bold"
|
||||
Foreground="Black"/>
|
||||
<TextBlock Text="Passen Sie Ihr Sky Team Erlebnis an"
|
||||
FontSize="12"
|
||||
Foreground="Gray"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
|
||||
|
||||
<Border Grid.Row="1"
|
||||
Padding="10"
|
||||
Margin="0,0,0,15"
|
||||
BorderBrush="#DDD"
|
||||
BorderThickness="1"
|
||||
CornerRadius="4">
|
||||
<StackPanel Orientation="Horizontal"
|
||||
VerticalAlignment="Center">
|
||||
<iconPacks:PackIconMaterial Kind="WeatherNight"
|
||||
Width="22"
|
||||
Height="22"
|
||||
Margin="0,0,10,0"/>
|
||||
<StackPanel>
|
||||
<TextBlock Text="Dark Mode"
|
||||
FontSize="14"
|
||||
FontWeight="Bold"
|
||||
Foreground="Black"/>
|
||||
<TextBlock Text="Aktivieren Sie den dunklen Modus für die Anwendung."
|
||||
FontSize="12"
|
||||
Foreground="Gray"/>
|
||||
</StackPanel>
|
||||
|
||||
<ToggleButton x:Name="DarkModeToggle"
|
||||
Width="80"
|
||||
Height="26"
|
||||
Margin="20,0,0,0"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Center"
|
||||
Content="Aus"
|
||||
Checked="DarkModeToggle_Checked"
|
||||
Unchecked="DarkModeToggle_Unchecked"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
|
||||
|
||||
<Border Grid.Row="2"
|
||||
Padding="10"
|
||||
BorderBrush="#FFB71C1C"
|
||||
BorderThickness="1"
|
||||
CornerRadius="4">
|
||||
<StackPanel>
|
||||
<StackPanel Orientation="Horizontal"
|
||||
Margin="0,0,0,8">
|
||||
<iconPacks:PackIconMaterial Kind="AlertCircle"
|
||||
Width="22"
|
||||
Height="22"
|
||||
Foreground="#FFB71C1C"
|
||||
Margin="0,0,10,0"/>
|
||||
<TextBlock Text="Konto löschen"
|
||||
FontSize="14"
|
||||
FontWeight="Bold"
|
||||
Foreground="#FFB71C1C"/>
|
||||
</StackPanel>
|
||||
|
||||
<TextBlock Text="Achtung: Diese Aktion kann nicht rückgängig gemacht werden."
|
||||
FontSize="12"
|
||||
Foreground="Gray"
|
||||
Margin="0,0,0,8"/>
|
||||
|
||||
<Button x:Name="DeleteAccountButton"
|
||||
Width="160"
|
||||
Height="32"
|
||||
HorizontalAlignment="Left"
|
||||
Background="#FFB71C1C"
|
||||
Foreground="White"
|
||||
Click="DeleteAccountButton_Click">
|
||||
<StackPanel Orientation="Horizontal"
|
||||
HorizontalAlignment="Center">
|
||||
<iconPacks:PackIconMaterial Kind="AccountRemove"
|
||||
Width="18"
|
||||
Height="18"
|
||||
Margin="0,0,6,0"/>
|
||||
<TextBlock Text="Konto löschen"/>
|
||||
</StackPanel>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
|
||||
</Grid>
|
||||
</Page>
|
||||
53
SkyTeam/SettingsPage.xaml.cs
Normal file
53
SkyTeam/SettingsPage.xaml.cs
Normal file
@@ -0,0 +1,53 @@
|
||||
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";
|
||||
// Apply dark theme to parent window
|
||||
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);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -8,4 +8,8 @@
|
||||
<UseWPF>true</UseWPF>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="MahApps.Metro.IconPacks" Version="6.2.1" />
|
||||
</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