test navbar
This commit is contained in:
@@ -21,8 +21,6 @@ namespace Apollon.EntityFramework.Commands
|
|||||||
|
|
||||||
public async Task Execute(Tournament tournament)
|
public async Task Execute(Tournament tournament)
|
||||||
{
|
{
|
||||||
throw new Exception();
|
|
||||||
|
|
||||||
using (TournamentsDbContext context = _contextFactory.Create())
|
using (TournamentsDbContext context = _contextFactory.Create())
|
||||||
{
|
{
|
||||||
TournamentDto tournamentDto = new TournamentDto()
|
TournamentDto tournamentDto = new TournamentDto()
|
||||||
|
|||||||
@@ -18,4 +18,8 @@
|
|||||||
<ProjectReference Include="..\Apollon.EntityFramework\Apollon.EntityFramework.csproj" />
|
<ProjectReference Include="..\Apollon.EntityFramework\Apollon.EntityFramework.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Folder Include="Images\Logos\" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
BIN
Apollon.WPF/Images/Logos/logo_gross_DSB.jpg
Normal file
BIN
Apollon.WPF/Images/Logos/logo_gross_DSB.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 102 KiB |
BIN
Apollon.WPF/Images/Logos/logo_klein_DSB.jpg
Normal file
BIN
Apollon.WPF/Images/Logos/logo_klein_DSB.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 31 KiB |
86
Apollon.WPF/Views/Components/TournamentDetails.xaml
Normal file
86
Apollon.WPF/Views/Components/TournamentDetails.xaml
Normal file
@@ -0,0 +1,86 @@
|
|||||||
|
<UserControl x:Class="Apollon.WPF.Views.Components.TournamentDetails"
|
||||||
|
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.Components"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
d:DesignHeight="100" d:DesignWidth="800">
|
||||||
|
<Grid>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
<ColumnDefinition MaxWidth="650"/>
|
||||||
|
<ColumnDefinition Width="auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Image Grid.Column="0"
|
||||||
|
Source="D:\Projekte\Apollon\Apollon\Apollon.WPF\Images\Logos\logo_klein_DSB.jpg"
|
||||||
|
Width="80"
|
||||||
|
VerticalAlignment="Center"/>
|
||||||
|
<StackPanel Grid.Column="1">
|
||||||
|
<WrapPanel HorizontalAlignment="Center">
|
||||||
|
<TextBlock Text="Organisation"
|
||||||
|
TextAlignment="Center"
|
||||||
|
FontFamily="Arial"
|
||||||
|
FontWeight="Bold"
|
||||||
|
FontSize="16"
|
||||||
|
Foreground="#0000a0"
|
||||||
|
Margin="10"/>
|
||||||
|
<TextBlock Text="TournamentName"
|
||||||
|
TextAlignment="Center"
|
||||||
|
FontFamily="Arial"
|
||||||
|
FontWeight="Bold"
|
||||||
|
FontSize="16"
|
||||||
|
Foreground="#0000a0"
|
||||||
|
Margin="10"/>
|
||||||
|
</WrapPanel>
|
||||||
|
<WrapPanel HorizontalAlignment="Center">
|
||||||
|
<TextBlock Text="Competition"
|
||||||
|
TextAlignment="Center"
|
||||||
|
FontFamily="Arial"
|
||||||
|
FontWeight="Bold"
|
||||||
|
FontSize="14"
|
||||||
|
Foreground="#0000a0"
|
||||||
|
Margin="10"/>
|
||||||
|
<TextBlock Text="Location"
|
||||||
|
TextAlignment="Center"
|
||||||
|
FontFamily="Arial"
|
||||||
|
FontWeight="Bold"
|
||||||
|
FontSize="14"
|
||||||
|
Foreground="#0000a0"
|
||||||
|
Margin="10"/>
|
||||||
|
<TextBlock Text="vom"
|
||||||
|
TextAlignment="Center"
|
||||||
|
FontFamily="Arial"
|
||||||
|
FontWeight="Bold"
|
||||||
|
FontSize="14"
|
||||||
|
Foreground="#0000a0"
|
||||||
|
Margin="10"/>
|
||||||
|
<TextBlock Text="StartDate"
|
||||||
|
TextAlignment="Center"
|
||||||
|
FontFamily="Arial"
|
||||||
|
FontWeight="Bold"
|
||||||
|
FontSize="14"
|
||||||
|
Foreground="#0000a0"
|
||||||
|
Margin="10"/>
|
||||||
|
<TextBlock Text="bis"
|
||||||
|
TextAlignment="Center"
|
||||||
|
FontFamily="Arial"
|
||||||
|
FontWeight="Bold"
|
||||||
|
FontSize="14"
|
||||||
|
Foreground="#0000a0"
|
||||||
|
Margin="10"/>
|
||||||
|
<TextBlock Text="EndDate"
|
||||||
|
TextAlignment="Center"
|
||||||
|
FontFamily="Arial"
|
||||||
|
FontWeight="Bold"
|
||||||
|
FontSize="14"
|
||||||
|
Foreground="#0000a0"
|
||||||
|
Margin="10"/>
|
||||||
|
</WrapPanel>
|
||||||
|
</StackPanel>
|
||||||
|
<Image Grid.Column="2"
|
||||||
|
Source="D:\Projekte\Apollon\Apollon\Apollon.WPF\Images\TargetField.png"
|
||||||
|
Width="70"
|
||||||
|
VerticalAlignment="Center"/>
|
||||||
|
</Grid>
|
||||||
|
</UserControl>
|
||||||
28
Apollon.WPF/Views/Components/TournamentDetails.xaml.cs
Normal file
28
Apollon.WPF/Views/Components/TournamentDetails.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.Components
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Interaction logic for TournamentDetails.xaml
|
||||||
|
/// </summary>
|
||||||
|
public partial class TournamentDetails : UserControl
|
||||||
|
{
|
||||||
|
public TournamentDetails()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -7,8 +7,7 @@
|
|||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
d:DesignHeight="450" d:DesignWidth="800">
|
d:DesignHeight="450" d:DesignWidth="800">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Border BorderThickness="4"
|
<Border BorderThickness="2"
|
||||||
BorderBrush="#0000a0"
|
|
||||||
CornerRadius="5"
|
CornerRadius="5"
|
||||||
Grid.RowSpan="2"
|
Grid.RowSpan="2"
|
||||||
Grid.ColumnSpan="3">
|
Grid.ColumnSpan="3">
|
||||||
|
|||||||
@@ -4,11 +4,43 @@
|
|||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:local="clr-namespace:Apollon.WPF.Views"
|
xmlns:local="clr-namespace:Apollon.WPF.Views"
|
||||||
|
xmlns:components="clr-namespace:Apollon.WPF.Views.Components"
|
||||||
|
xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
d:DesignHeight="450" d:DesignWidth="800">
|
d:DesignHeight="450" d:DesignWidth="800">
|
||||||
<Grid>
|
<Grid Margin="45">
|
||||||
<TextBlock Text="Navbar"
|
<Grid.RowDefinitions>
|
||||||
FontSize="35"
|
<RowDefinition Height="100"/>
|
||||||
Padding="100"/>
|
<RowDefinition/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="150"/>
|
||||||
|
<ColumnDefinition/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Button Width="35"
|
||||||
|
Height="35"
|
||||||
|
Background="Transparent"
|
||||||
|
BorderThickness="0"
|
||||||
|
HorizontalAlignment="Left"
|
||||||
|
Margin="5">
|
||||||
|
<iconPacks:PackIconMaterial Kind="ArrowLeft"
|
||||||
|
Height="25"
|
||||||
|
Width="35"
|
||||||
|
Foreground="#0000a0"/>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<components:TournamentDetails Grid.Column="1"/>
|
||||||
|
<StackPanel Grid.Row="1">
|
||||||
|
<Button Height="45"
|
||||||
|
Background="Transparent"/>
|
||||||
|
<Button Height="45"
|
||||||
|
Background="Transparent"/>
|
||||||
|
<Button Height="45"
|
||||||
|
Background="Transparent"/>
|
||||||
|
<Button Height="45"
|
||||||
|
Background="Transparent"/>
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
|
|||||||
Reference in New Issue
Block a user