initialisierung der Views
This commit is contained in:
73
SkyTeam/LogInPage.xaml
Normal file
73
SkyTeam/LogInPage.xaml
Normal file
@@ -0,0 +1,73 @@
|
||||
<Page x:Class="SkyTeam.LogInPage"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
Title="LogInPage">
|
||||
|
||||
<Grid>
|
||||
|
||||
|
||||
<TextBlock Text="Sky Team"
|
||||
FontSize="36"
|
||||
FontStyle="Oblique"
|
||||
HorizontalAlignment="Center"
|
||||
Margin="0,40,0,40"/>
|
||||
|
||||
|
||||
<Grid VerticalAlignment="Center"
|
||||
HorizontalAlignment="Center">
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="200"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
|
||||
<Label Content="Benutzername:"
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
Margin="0,0,10,10"/>
|
||||
|
||||
<TextBox x:Name="BenutzernameTextBox"
|
||||
Grid.Row="0"
|
||||
Grid.Column="1"
|
||||
Margin="0,0,0,10"/>
|
||||
|
||||
|
||||
<Label Content="Passwort:"
|
||||
Grid.Row="1"
|
||||
Grid.Column="0"
|
||||
Margin="0,0,10,10"/>
|
||||
|
||||
<PasswordBox x:Name="PasswortTextBox"
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Margin="0,0,0,10"/>
|
||||
|
||||
|
||||
<StackPanel Grid.Row="2"
|
||||
Grid.ColumnSpan="2"
|
||||
Orientation="Horizontal"
|
||||
HorizontalAlignment="Center"
|
||||
Margin="0,20,0,0">
|
||||
|
||||
<Button Content="Login"
|
||||
Width="110"
|
||||
Margin="0,0,20,0"
|
||||
Click="LogInButton"/>
|
||||
|
||||
<Button Content="Registrieren"
|
||||
Width="110"
|
||||
Click="anmeldungsButton"/>
|
||||
</StackPanel>
|
||||
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
</Page>
|
||||
42
SkyTeam/LogInPage.xaml.cs
Normal file
42
SkyTeam/LogInPage.xaml.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
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(object sender, RoutedEventArgs e)
|
||||
{
|
||||
((MainWindow)Application.Current.MainWindow).MainFrame.Navigate(new RegistrationPage());
|
||||
|
||||
}
|
||||
|
||||
private void LogInButton(object sender, RoutedEventArgs e)
|
||||
{
|
||||
MessageBox.Show("Anmeldung erfolgreich!");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5,8 +5,20 @@
|
||||
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="MainWindow" Height="450" Width="800" Cursor="Arrow">
|
||||
<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"/>
|
||||
|
||||
</Grid>
|
||||
</Window>
|
||||
|
||||
@@ -19,6 +19,13 @@ namespace SkyTeam
|
||||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
MainFrame.Navigate(new LogInPage());
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
59
SkyTeam/Regestrieren.xaml
Normal file
59
SkyTeam/Regestrieren.xaml
Normal file
@@ -0,0 +1,59 @@
|
||||
<Page x:Class="SkyTeam.RegistrationPage"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
Title="Registrierungsseite">
|
||||
|
||||
<Grid Height="346">
|
||||
|
||||
|
||||
|
||||
<Grid VerticalAlignment="Center"
|
||||
HorizontalAlignment="Center" Height="300">
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<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="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="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="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"/>
|
||||
|
||||
<Button Content="Registrieren"
|
||||
Grid.Row="6"
|
||||
Width="140"
|
||||
Margin="22,40,0,-20"
|
||||
HorizontalAlignment="Left"
|
||||
Click="RegisterButton_Click" Grid.Column="1"/>
|
||||
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
</Page>
|
||||
38
SkyTeam/Regestrieren.xaml.cs
Normal file
38
SkyTeam/Regestrieren.xaml.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
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)
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user