Display AddModal
This commit is contained in:
@@ -3,17 +3,16 @@
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:Apollon.WPF.Views" xmlns:components="clr-namespace:Apollon.WPF.Views.Components"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
xmlns:local="clr-namespace:Apollon.WPF.Views"
|
||||
xmlns:components="clr-namespace:Apollon.WPF.Views.Components"
|
||||
mc:Ignorable="d">
|
||||
<Grid>
|
||||
<TextBlock Text="Erstellen eines Tourniers"
|
||||
<TextBlock Text="Turniers erstellen"
|
||||
TextAlignment="Center"
|
||||
FontFamily="Arial"
|
||||
FontWeight="Bold"
|
||||
FontSize="25"
|
||||
Foreground="#0000a0"
|
||||
Margin="10"/>
|
||||
<components:AddEditDetails Margin="20 40"/>
|
||||
Foreground="#0000a0"/>
|
||||
<components:AddEditDetails Margin="0 50 0 0"/>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
|
||||
@@ -24,5 +24,6 @@ namespace Apollon.WPF.Views
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,85 +4,113 @@
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:Apollon.WPF.Views.Components"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<Grid Height="450">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="*" MaxWidth="250"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
<StackPanel Grid.Row="0">
|
||||
mc:Ignorable="d">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="55"/>
|
||||
<RowDefinition Height="55"/>
|
||||
<RowDefinition Height="55"/>
|
||||
<RowDefinition Height="55"/>
|
||||
<RowDefinition Height="55"/>
|
||||
<RowDefinition Height="55"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="180"/>
|
||||
<ColumnDefinition Width="400"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<TextBlock Text="Veranstalter: "
|
||||
Style="{StaticResource ModalTextBlock}"
|
||||
Margin="0 20 0 0"/>
|
||||
<TextBlock Text="Tourniername: "
|
||||
Style="{StaticResource ModalTextBlock}"
|
||||
Margin="0 20 0 0"/>
|
||||
<TextBlock Text="Kategorie: "
|
||||
Style="{StaticResource ModalTextBlock}"
|
||||
Margin="0 20 0 0"/>
|
||||
<TextBlock Text="Startdatum: "
|
||||
Style="{StaticResource ModalTextBlock}"
|
||||
Margin="0 20 0 0"/>
|
||||
<TextBlock Text="Enddatum: "
|
||||
Style="{StaticResource ModalTextBlock}"
|
||||
Margin="0 20 0 0"/>
|
||||
<TextBlock Text="Veranstaltungsort: "
|
||||
Style="{StaticResource ModalTextBlock}"
|
||||
Margin="0 20 0 0"/>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Grid.Column="1">
|
||||
<TextBox Text="{Binding Organisation}"
|
||||
FontFamily="Arial"
|
||||
FontSize="14"
|
||||
Margin="0 15 0 0"
|
||||
Padding="2"/>
|
||||
<TextBox Text="{Binding Tournamentname}"
|
||||
TextAlignment="Center"
|
||||
FontFamily="Arial"
|
||||
FontSize="14"
|
||||
Margin="0 20 0 0"
|
||||
Padding="2"
|
||||
/>
|
||||
<ComboBox ItemsSource="{Binding Category}"
|
||||
Margin="0 20 0 15"/>
|
||||
Style="{StaticResource ModalTextBlock}"/>
|
||||
<TextBlock Grid.Row="1"
|
||||
Text="Turniername: "
|
||||
Style="{StaticResource ModalTextBlock}"/>
|
||||
<TextBlock Grid.Row="2"
|
||||
Text="Kategorie: "
|
||||
Style="{StaticResource ModalTextBlock}"/>
|
||||
<TextBlock Grid.Row="3"
|
||||
Text="Startdatum: "
|
||||
Style="{StaticResource ModalTextBlock}"/>
|
||||
<TextBlock Grid.Row="4"
|
||||
Text="Enddatum: "
|
||||
Style="{StaticResource ModalTextBlock}"/>
|
||||
<TextBlock Grid.Row="5"
|
||||
Text="Veranstaltungsort: "
|
||||
Style="{StaticResource ModalTextBlock}"/>
|
||||
|
||||
<DatePicker MaxWidth="150"
|
||||
HorizontalAlignment="Center"/>
|
||||
|
||||
<DatePicker MaxWidth="150"
|
||||
HorizontalAlignment="Center"/>
|
||||
|
||||
<TextBox Text="{Binding Location}"
|
||||
TextAlignment="Center"
|
||||
<TextBox Grid.Column="1"
|
||||
Text="{Binding Organisation}"
|
||||
FontFamily="Arial"
|
||||
FontSize="16"
|
||||
Height="30"
|
||||
Background="LightGray"
|
||||
VerticalContentAlignment="Center"/>
|
||||
<TextBox Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Text="{Binding Tournamentname}"
|
||||
FontFamily="Arial"
|
||||
FontSize="14"
|
||||
Margin="0 20 0 0"/>
|
||||
</StackPanel>
|
||||
<WrapPanel Grid.Row="1"
|
||||
Grid.ColumnSpan="2"
|
||||
HorizontalAlignment="Center"
|
||||
Margin="20">
|
||||
FontSize="16"
|
||||
Height="30"
|
||||
VerticalContentAlignment="Center"
|
||||
Background="LightGray"/>
|
||||
<ComboBox Grid.Row="2"
|
||||
Grid.Column="1"
|
||||
ItemsSource="{Binding Category}"
|
||||
Height="30"
|
||||
FontSize="16"
|
||||
HorizontalContentAlignment="Center"
|
||||
VerticalContentAlignment="Center"/>
|
||||
|
||||
<DatePicker Grid.Row="3"
|
||||
Grid.Column="1"
|
||||
Height="30"
|
||||
FontSize="16"
|
||||
Width="160"
|
||||
HorizontalAlignment="Left"/>
|
||||
|
||||
<DatePicker Grid.Row="4"
|
||||
Grid.Column="1"
|
||||
Height="30"
|
||||
FontSize="16"
|
||||
Width="160"
|
||||
HorizontalAlignment="Left"/>
|
||||
|
||||
<TextBox Grid.Row="5"
|
||||
Grid.Column="1"
|
||||
Text="{Binding Location}"
|
||||
FontFamily="Arial"
|
||||
FontSize="16"
|
||||
Height="30"
|
||||
VerticalContentAlignment="Center"
|
||||
Background="LightGray"/>
|
||||
|
||||
<Grid Grid.Row="6"
|
||||
Grid.ColumnSpan="2"
|
||||
Margin="0 30 0 0"
|
||||
Width="450"
|
||||
HorizontalAlignment="Center">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Button Content="Speichern"
|
||||
Command="{Binding SubmitCommand}"
|
||||
Style="{StaticResource ModernButton}"
|
||||
Width="100"
|
||||
Height="25"
|
||||
HorizontalAlignment="Left"
|
||||
Margin="0 0 80 0"
|
||||
IsEnabled="{Binding CanSubmit}">
|
||||
Width="120"
|
||||
Height="35"
|
||||
FontSize="16"
|
||||
IsEnabled="{Binding CanSubmit}">
|
||||
</Button>
|
||||
<Button Content="Abbrechen"
|
||||
Command="{Binding CancelCommand}"
|
||||
Style="{StaticResource ModernButton}"
|
||||
Width="100"
|
||||
Height="25"/>
|
||||
</WrapPanel>
|
||||
|
||||
</Grid>
|
||||
Width="120"
|
||||
Height="35"
|
||||
FontSize="16"
|
||||
Grid.Column="1"/>
|
||||
</Grid>
|
||||
|
||||
|
||||
</Grid>
|
||||
|
||||
</UserControl>
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
Background="Transparent"
|
||||
BorderThickness="0"
|
||||
Cursor="Hand"
|
||||
ToolTip="Löschen"
|
||||
Command="{Binding DeleteCommand}">
|
||||
<iconPacks:PackIconMaterial Kind="TrashCan"
|
||||
VerticalAlignment="Center"
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
CornerRadius="10">
|
||||
</Border>
|
||||
|
||||
<TextBlock Text="erstelle eine neues Tournier oder wähle ein vorhandenes Tournier um es zu bearbeiten!"
|
||||
<TextBlock Text="klicke auf neues Turnier erstellen oder wähle ein vorhandenes Turnier um es zu bearbeiten!"
|
||||
TextAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="Arial"
|
||||
|
||||
18
Apollon.WPF/Views/EditTournamentView.xaml
Normal file
18
Apollon.WPF/Views/EditTournamentView.xaml
Normal file
@@ -0,0 +1,18 @@
|
||||
<UserControl x:Class="Apollon.WPF.Views.EditTournamentView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:Apollon.WPF.Views"
|
||||
xmlns:components="clr-namespace:Apollon.WPF.Views.Components"
|
||||
mc:Ignorable="d">
|
||||
<Grid>
|
||||
<TextBlock Text="Turniers Bearbeiten"
|
||||
TextAlignment="Center"
|
||||
FontFamily="Arial"
|
||||
FontWeight="Bold"
|
||||
FontSize="25"
|
||||
Foreground="#0000a0"/>
|
||||
<components:AddEditDetails Margin="0 50 0 0"/>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
28
Apollon.WPF/Views/EditTournamentView.xaml.cs
Normal file
28
Apollon.WPF/Views/EditTournamentView.xaml.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
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 Apollon.WPF.Views
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for EditTournamentView.xaml
|
||||
/// </summary>
|
||||
public partial class EditTournamentView : UserControl
|
||||
{
|
||||
public EditTournamentView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user