LOTTOPROJEKT/LOTO/LOTO/MainWindow.xaml
2025-06-17 06:33:48 +02:00

82 lines
4.3 KiB
XML

<Window x:Class="LOTO.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Lotto Spiel" Height="600" Width="800"
Background="White" Foreground="Black"
WindowStartupLocation="CenterScreen">
<Grid Margin="20">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<!-- Eingabe Bereich -->
<StackPanel Grid.Row="0" Margin="0,0,0,20">
<Label Content="Wie viele Tickets möchten Sie kaufen?" FontWeight="Bold"/>
<TextBox x:Name="txtTicketCount" Width="100" HorizontalAlignment="Left" Margin="0,5,0,10"/>
<Label Content="Sollen die Tickets zufällig ausgefüllt werden?" FontWeight="Bold"/>
<StackPanel Orientation="Horizontal" Margin="0,5,0,10">
<RadioButton x:Name="rbAllesRandom" Content="Ja (Alle zufällig)" Margin="0,0,20,0" IsChecked="True"/>
<RadioButton x:Name="rbMixed" Content="Nein (Für jedes Ticket wählen)"/>
</StackPanel>
<Button x:Name="btnSpielStarten" Content="Spiel starten" Width="120" Height="30"
HorizontalAlignment="Left" Click="BtnSpielStarten"
Background="White" BorderBrush="Black" BorderThickness="1"/>
</StackPanel>
<!-- Manuelle Eingabe Bereich (versteckt) -->
<StackPanel x:Name="ManuellPanelInput" Grid.Row="1" Visibility="Collapsed" Margin="0,0,0,20">
<Label x:Name="aktuellesLabelticket" Content="" FontWeight="Bold"/>
<Label Content="Wie möchten Sie dieses Ticket ausfüllen:"/>
<StackPanel Orientation="Horizontal" Margin="0,5,0,10">
<RadioButton x:Name="rbManuell" Content="Manuell" Margin="0,0,20,0" IsChecked="True"/>
<RadioButton x:Name="rbTicketRandom" Content="Zufällig"/>
</StackPanel>
<!-- Manuelle Zahleneingabe -->
<StackPanel x:Name="ZahlPanelInput" Margin="0,10,0,10">
<Label Content="Geben Sie Ihre Zahlen ein (1-49):"/>
<WrapPanel>
<StackPanel Orientation="Horizontal" Margin="0,0,10,5">
<Label Content="1:" Width="20"/>
<TextBox x:Name="txt1" Width="40" Margin="5,0"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,0,10,5">
<Label Content="2:" Width="20"/>
<TextBox x:Name="txt2" Width="40" Margin="5,0"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,0,10,5">
<Label Content="3:" Width="20"/>
<TextBox x:Name="txt3" Width="40" Margin="5,0"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,0,10,5">
<Label Content="4:" Width="20"/>
<TextBox x:Name="txt4" Width="40" Margin="5,0"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,0,10,5">
<Label Content="5:" Width="20"/>
<TextBox x:Name="txt5" Width="40" Margin="5,0"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,0,10,5">
<Label Content="6:" Width="20"/>
<TextBox x:Name="txt6" Width="40" Margin="5,0"/>
</StackPanel>
</WrapPanel>
</StackPanel>
<Button x:Name="btnSubmitTicket" Content="Ticket bestätigen" Width="140" Height="30"
HorizontalAlignment="Left" Click="BtnBestätigen"
Background="White" BorderBrush="Black" BorderThickness="1"/>
</StackPanel>
<!-- Ergebnisse Bereich -->
<ScrollViewer Grid.Row="3" Background="Black" Foreground="White" Margin="0,10,0,10">
<TextBlock x:Name="txtErgebnisse" Padding="10" FontFamily="Consolas" FontSize="12"
TextWrapping="Wrap" Background="Black" Foreground="White"/>
</ScrollViewer>
</Grid>
</Window>