CineBook Projekt hinzugefügt
This commit is contained in:
77
Views/BookingsView.xaml
Normal file
77
Views/BookingsView.xaml
Normal file
@@ -0,0 +1,77 @@
|
||||
<UserControl x:Class="CineBook.Views.BookingsView"
|
||||
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="🎟 BUCHUNGSVERWALTUNG" 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="STATUS:" Style="{StaticResource RetroLabel}" VerticalAlignment="Center" Margin="0,0,8,0"/>
|
||||
<ComboBox x:Name="StatusFilter" Width="160" Height="30"
|
||||
Background="#111" Foreground="#F5C518" FontFamily="Courier New"
|
||||
SelectionChanged="FilterChanged">
|
||||
<ComboBoxItem>Alle</ComboBoxItem>
|
||||
<ComboBoxItem>Confirmed</ComboBoxItem>
|
||||
<ComboBoxItem>Cancelled</ComboBoxItem>
|
||||
</ComboBox>
|
||||
<Button Content="[ AKTUALISIEREN ]" Style="{StaticResource RetroButtonGray}"
|
||||
Margin="8,0,0,0" Height="30" Click="RefreshClick"/>
|
||||
</StackPanel>
|
||||
<StackPanel DockPanel.Dock="Right" Orientation="Horizontal" HorizontalAlignment="Right">
|
||||
<Button x:Name="BtnCancel" Content="[ ✕ BUCHUNG STORNIEREN ]" Style="{StaticResource RetroButtonRed}"
|
||||
Height="30" Click="CancelBookingClick" IsEnabled="False"/>
|
||||
</StackPanel>
|
||||
</DockPanel>
|
||||
</Border>
|
||||
|
||||
<DataGrid x:Name="BookingsGrid" 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="CODE" Binding="{Binding BookingCode}" Width="130"/>
|
||||
<DataGridTextColumn Header="BENUTZER" Binding="{Binding Username}" Width="100"/>
|
||||
<DataGridTextColumn Header="FILM" Binding="{Binding MovieTitle}" Width="*"/>
|
||||
<DataGridTextColumn Header="VORFÜHRUNG" Binding="{Binding ScreeningDisplay}" Width="150"/>
|
||||
<DataGridTextColumn Header="SITZ" Binding="{Binding SeatDisplay}" Width="70"/>
|
||||
<DataGridTextColumn Header="PREIS" Binding="{Binding PriceDisplay}" Width="80"/>
|
||||
<DataGridTextColumn Header="STATUS" Binding="{Binding Status}" Width="90"/>
|
||||
<DataGridTextColumn Header="GEBUCHT AM" Binding="{Binding DateDisplay}" Width="130"/>
|
||||
</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