CineBook Projekt hinzugefügt

This commit is contained in:
2026-03-12 14:28:52 +01:00
commit b6357c9b8a
33 changed files with 2857 additions and 0 deletions

86
Views/MovieListView.xaml Normal file
View File

@@ -0,0 +1,86 @@
<UserControl x:Class="CineBook.Views.MovieListView"
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>
<!-- HEADER -->
<StackPanel Grid.Row="0" Orientation="Horizontal" Margin="0,0,0,16">
<TextBlock Text="🎥 FILMVERWALTUNG" Style="{StaticResource RetroHeader}"/>
</StackPanel>
<!-- TOOLBAR -->
<Border Grid.Row="1" Background="#111" BorderBrush="#222" BorderThickness="1" Padding="12" Margin="0,0,0,12">
<DockPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="SUCHE:" Style="{StaticResource RetroLabel}" VerticalAlignment="Center" Margin="0,0,8,0"/>
<TextBox x:Name="SearchBox" Style="{StaticResource RetroTextBox}"
Width="220" Height="30" TextChanged="SearchChanged"/>
<Button Content="[ SUCHEN ]" Style="{StaticResource RetroButton}"
Margin="8,0,0,0" Height="30" Click="SearchClick"/>
<Button Content="[ ALLE ]" Style="{StaticResource RetroButtonGray}"
Margin="4,0,0,0" Height="30" Click="LoadAllClick"/>
</StackPanel>
<StackPanel DockPanel.Dock="Right" Orientation="Horizontal" HorizontalAlignment="Right">
<Button x:Name="BtnAdd" Content="[ + HINZUFÜGEN ]" Style="{StaticResource RetroButtonGreen}"
Height="30" Click="AddClick"/>
<Button x:Name="BtnEdit" Content="[ ✎ BEARBEITEN ]" Style="{StaticResource RetroButton}"
Margin="6,0" Height="30" Click="EditClick" IsEnabled="False"/>
<Button x:Name="BtnDelete" Content="[ ✕ LÖSCHEN ]" Style="{StaticResource RetroButtonRed}"
Height="30" Click="DeleteClick" IsEnabled="False"/>
</StackPanel>
</DockPanel>
</Border>
<!-- DATA GRID -->
<DataGrid x:Name="MoviesGrid" 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>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#161200"/>
</Trigger>
</Style.Triggers>
</Style>
</DataGrid.RowStyle>
<DataGrid.Columns>
<DataGridTextColumn Header="ID" Binding="{Binding MovieID}" Width="50"/>
<DataGridTextColumn Header="TITEL" Binding="{Binding Title}" Width="*"/>
<DataGridTextColumn Header="GENRE" Binding="{Binding Genre}" Width="100"/>
<DataGridTextColumn Header="DAUER" Binding="{Binding DurationDisplay}" Width="90"/>
<DataGridTextColumn Header="BEWERTUNG" Binding="{Binding RatingDisplay}" Width="100"/>
<DataGridCheckBoxColumn Header="AKTIV" Binding="{Binding IsActive}" Width="70"/>
<DataGridTextColumn Header="BESCHREIBUNG" Binding="{Binding Description}" Width="200"/>
</DataGrid.Columns>
</DataGrid>
<!-- STATUS -->
<TextBlock x:Name="StatusText" Grid.Row="3" Style="{StaticResource RetroLabel}"
Foreground="#666" Margin="0,8,0,0"/>
</Grid>
</UserControl>