CineBook Projekt hinzugefügt
This commit is contained in:
73
Views/ScreeningsView.xaml
Normal file
73
Views/ScreeningsView.xaml
Normal file
@@ -0,0 +1,73 @@
|
||||
<UserControl x:Class="CineBook.Views.ScreeningsView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
Background="#0A0A0A">
|
||||
<Grid Margin="20">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Grid.Row="0" Text="📅 VORFÜHRUNGEN" Style="{StaticResource RetroHeader}" Margin="0,0,0,16"/>
|
||||
<Border Grid.Row="1" Background="#111" BorderBrush="#222" BorderThickness="1" Padding="12" Margin="0,0,0,12">
|
||||
<DockPanel>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock Text="FILM-FILTER:" Style="{StaticResource RetroLabel}" VerticalAlignment="Center" Margin="0,0,8,0"/>
|
||||
<ComboBox x:Name="MovieFilter" Width="200" Height="30"
|
||||
Background="#111" Foreground="#F5C518" FontFamily="Courier New"
|
||||
SelectionChanged="FilterChanged"/>
|
||||
<Button Content="[ ALLE ]" Style="{StaticResource RetroButtonGray}"
|
||||
Margin="8,0,0,0" Height="30" Click="LoadAllClick"/>
|
||||
</StackPanel>
|
||||
<StackPanel DockPanel.Dock="Right" Orientation="Horizontal" HorizontalAlignment="Right">
|
||||
<Button x:Name="BtnAdd" Content="[ + NEUE VORFÜHRUNG ]" Style="{StaticResource RetroButtonGreen}"
|
||||
Height="30" Click="AddClick"/>
|
||||
<Button x:Name="BtnEdit" Content="[ ✎ BEARBEITEN ]" Style="{StaticResource RetroButtonGray}"
|
||||
Margin="6,0,0,0" Height="30" Click="EditClick" IsEnabled="False"/>
|
||||
<Button x:Name="BtnDelete" Content="[ ✕ LÖSCHEN ]" Style="{StaticResource RetroButtonRed}"
|
||||
Margin="6,0,0,0" Height="30" Click="DeleteClick" IsEnabled="False"/>
|
||||
<Button x:Name="BtnBookSeat" Content="[ 🎟 TICKET BUCHEN ]" Style="{StaticResource RetroButton}"
|
||||
Margin="6,0,0,0" Height="30" Click="BookSeatClick" IsEnabled="False"/>
|
||||
</StackPanel>
|
||||
</DockPanel>
|
||||
</Border>
|
||||
<DataGrid x:Name="ScreeningsGrid" Grid.Row="2" Style="{StaticResource RetroDataGrid}"
|
||||
SelectionChanged="GridSelectionChanged">
|
||||
<DataGrid.ColumnHeaderStyle>
|
||||
<Style TargetType="DataGridColumnHeader">
|
||||
<Setter Property="Background" Value="#1a1a1a"/>
|
||||
<Setter Property="Foreground" Value="#F5C518"/>
|
||||
<Setter Property="FontFamily" Value="Courier New"/>
|
||||
<Setter Property="FontWeight" Value="Bold"/>
|
||||
<Setter Property="FontSize" Value="11"/>
|
||||
<Setter Property="Padding" Value="8,6"/>
|
||||
<Setter Property="BorderBrush" Value="#333"/>
|
||||
<Setter Property="BorderThickness" Value="0,0,1,1"/>
|
||||
</Style>
|
||||
</DataGrid.ColumnHeaderStyle>
|
||||
<DataGrid.RowStyle>
|
||||
<Style TargetType="DataGridRow">
|
||||
<Setter Property="Background" Value="Transparent"/>
|
||||
<Setter Property="Foreground" Value="#CCC"/>
|
||||
<Style.Triggers>
|
||||
<Trigger Property="IsSelected" Value="True">
|
||||
<Setter Property="Background" Value="#1E1A00"/>
|
||||
<Setter Property="Foreground" Value="#F5C518"/>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</DataGrid.RowStyle>
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Header="ID" Binding="{Binding ScreeningID}" Width="50"/>
|
||||
<DataGridTextColumn Header="FILM" Binding="{Binding MovieTitle}" Width="*"/>
|
||||
<DataGridTextColumn Header="DATUM/ZEIT" Binding="{Binding DateTimeDisplay}" Width="160"/>
|
||||
<DataGridTextColumn Header="SAAL" Binding="{Binding Hall}" Width="80"/>
|
||||
<DataGridTextColumn Header="FREIE SITZE" Binding="{Binding SeatsDisplay}" Width="110"/>
|
||||
<DataGridTextColumn Header="PREIS" Binding="{Binding PriceDisplay}" Width="90"/>
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
<TextBlock x:Name="StatusText" Grid.Row="3" Style="{StaticResource RetroLabel}"
|
||||
Foreground="#666" Margin="0,8,0,0"/>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
Reference in New Issue
Block a user