295 lines
10 KiB
XML
295 lines
10 KiB
XML
<Window x:Class="Casino.Busfahrer"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:local="clr-namespace:Casino"
|
|
mc:Ignorable="d"
|
|
Title="Bus Driver"
|
|
Height="1080"
|
|
Width="1960"
|
|
WindowState="Maximized"
|
|
WindowStyle="None"
|
|
Background="#2C3E50">
|
|
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="100"/>
|
|
<ColumnDefinition Width="280"/>
|
|
<ColumnDefinition Width="20"/>
|
|
<ColumnDefinition Width="280"/>
|
|
<ColumnDefinition Width="20"/>
|
|
<ColumnDefinition Width="280"/>
|
|
<ColumnDefinition Width="20"/>
|
|
<ColumnDefinition Width="280"/>
|
|
<ColumnDefinition Width="20"/>
|
|
<ColumnDefinition Width="280"/>
|
|
<ColumnDefinition Width="20"/>
|
|
<ColumnDefinition Width="280"/>
|
|
<ColumnDefinition Width="100"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="70"/>
|
|
<RowDefinition Height="270"/>
|
|
<RowDefinition Height="270"/>
|
|
<RowDefinition Height="270"/>
|
|
<RowDefinition Height="200"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- Main Menu -->
|
|
<Button Grid.Column="0"
|
|
Grid.Row="0"
|
|
Content="Main Menu"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Click="Hauptmenue"
|
|
Width="100"
|
|
Height="40"/>
|
|
|
|
<!-- Karten -->
|
|
<Image Grid.Column="3" Grid.Row="2" x:Name="Bild_1" Margin="5" Stretch="Uniform"/>
|
|
<Image Grid.Column="5" Grid.Row="2" x:Name="Bild_2" Margin="5" Stretch="Uniform"/>
|
|
<Image Grid.Column="7" Grid.Row="2" x:Name="Bild_3" Margin="5" Stretch="Uniform"/>
|
|
<Image Grid.Column="9" Grid.Row="2" x:Name="Bild_4" Margin="5" Stretch="Uniform"/>
|
|
|
|
<!-- Frage 1: Rot / Schwarz -->
|
|
<StackPanel x:Name="PanelRedBlack"
|
|
Grid.Row="3"
|
|
Grid.Column="3"
|
|
Grid.ColumnSpan="7"
|
|
Orientation="Horizontal"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Margin="0,20,0,0">
|
|
|
|
<Button Content="Red"
|
|
Width="120"
|
|
Height="50"
|
|
Margin="10"
|
|
Background="#E74C3C"
|
|
Foreground="White"
|
|
FontSize="18"
|
|
FontWeight="Bold"
|
|
Click="ColorButton_Click"
|
|
Tag="Red"/>
|
|
|
|
<Button Content="Black"
|
|
Width="120"
|
|
Height="50"
|
|
Margin="10"
|
|
Background="#2C3E50"
|
|
Foreground="White"
|
|
FontSize="18"
|
|
FontWeight="Bold"
|
|
Click="ColorButton_Click"
|
|
Tag="Black"/>
|
|
</StackPanel>
|
|
|
|
<!-- Frage 2: Höher / Niedriger -->
|
|
<StackPanel x:Name="PanelHigherLower"
|
|
Grid.Row="3"
|
|
Grid.Column="3"
|
|
Grid.ColumnSpan="7"
|
|
Orientation="Horizontal"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Margin="0,20,0,0"
|
|
Visibility="Collapsed">
|
|
|
|
<Button Content="Higher"
|
|
Width="120"
|
|
Height="50"
|
|
Margin="10"
|
|
Background="#2ECC71"
|
|
Foreground="White"
|
|
FontSize="18"
|
|
FontWeight="Bold"
|
|
Click="HigherLowerButton_Click"
|
|
Tag="Higher"/>
|
|
|
|
<Button Content="Lower"
|
|
Width="120"
|
|
Height="50"
|
|
Margin="10"
|
|
Background="#E67E22"
|
|
Foreground="White"
|
|
FontSize="18"
|
|
FontWeight="Bold"
|
|
Click="HigherLowerButton_Click"
|
|
Tag="Lower"/>
|
|
</StackPanel>
|
|
|
|
<!-- Frage 3: Innen / Außen -->
|
|
<StackPanel x:Name="PanelInsideOutside"
|
|
Grid.Row="3"
|
|
Grid.Column="3"
|
|
Grid.ColumnSpan="7"
|
|
Orientation="Horizontal"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Margin="0,20,0,0"
|
|
Visibility="Collapsed">
|
|
|
|
<Button Content="Inside"
|
|
Width="130"
|
|
Height="50"
|
|
Margin="10"
|
|
Background="#9B59B6"
|
|
Foreground="White"
|
|
FontSize="18"
|
|
FontWeight="Bold"
|
|
Click="InsideOutsideButton_Click"
|
|
Tag="Inside"/>
|
|
|
|
<Button Content="Outside"
|
|
Width="130"
|
|
Height="50"
|
|
Margin="10"
|
|
Background="#3498DB"
|
|
Foreground="White"
|
|
FontSize="18"
|
|
FontWeight="Bold"
|
|
Click="InsideOutsideButton_Click"
|
|
Tag="Outside"/>
|
|
</StackPanel>
|
|
|
|
<!-- Frage 4: Symbol -->
|
|
<StackPanel x:Name="PanelSuit"
|
|
Grid.Row="3"
|
|
Grid.Column="3"
|
|
Grid.ColumnSpan="7"
|
|
Orientation="Horizontal"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Margin="0,20,0,0"
|
|
Visibility="Collapsed">
|
|
|
|
<Button Content="♥ Hearts"
|
|
Width="110"
|
|
Height="50"
|
|
Margin="5"
|
|
Background="#E74C3C"
|
|
Foreground="White"
|
|
FontSize="16"
|
|
FontWeight="Bold"
|
|
Click="BtnSuit_Click"
|
|
Tag="Hearts"/>
|
|
|
|
<Button Content="♦ Diamonds"
|
|
Width="110"
|
|
Height="50"
|
|
Margin="5"
|
|
Background="#E74C3C"
|
|
Foreground="White"
|
|
FontSize="16"
|
|
FontWeight="Bold"
|
|
Click="BtnSuit_Click"
|
|
Tag="Diamonds"/>
|
|
|
|
<Button Content="♠ Spades"
|
|
Width="110"
|
|
Height="50"
|
|
Margin="5"
|
|
Background="#2C3E50"
|
|
Foreground="White"
|
|
FontSize="16"
|
|
FontWeight="Bold"
|
|
Click="BtnSuit_Click"
|
|
Tag="Spades"/>
|
|
|
|
<Button Content="♣ Clubs"
|
|
Width="110"
|
|
Height="50"
|
|
Margin="5"
|
|
Background="#2C3E50"
|
|
Foreground="White"
|
|
FontSize="16"
|
|
FontWeight="Bold"
|
|
Click="BtnSuit_Click"
|
|
Tag="Clubs"/>
|
|
</StackPanel>
|
|
|
|
<!-- Cash Out / Start -->
|
|
<StackPanel Grid.Row="3"
|
|
Grid.Column="3"
|
|
Grid.ColumnSpan="7"
|
|
Orientation="Horizontal"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Bottom"
|
|
Margin="0,0,0,20">
|
|
|
|
<Button x:Name="BtnCashOut"
|
|
Content="Cash Out ($0.00)"
|
|
Width="180"
|
|
Height="50"
|
|
Margin="10"
|
|
Background="#27AE60"
|
|
Foreground="White"
|
|
FontSize="16"
|
|
FontWeight="Bold"
|
|
Click="BtnCashOut_Click"
|
|
Visibility="Collapsed"/>
|
|
|
|
<Button x:Name="BtnStart"
|
|
Content="Start New Game"
|
|
Width="180"
|
|
Height="50"
|
|
Margin="10"
|
|
Background="#1ABC9C"
|
|
Foreground="White"
|
|
FontSize="16"
|
|
FontWeight="Bold"
|
|
Click="BtnStart_Click"/>
|
|
</StackPanel>
|
|
|
|
<!-- Einsatz -->
|
|
<StackPanel Grid.Column="5"
|
|
Grid.ColumnSpan="3"
|
|
Grid.Row="4"
|
|
Orientation="Vertical"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center">
|
|
|
|
<TextBlock x:Name="Txteinsatztext"
|
|
Text="Einsatz"
|
|
Foreground="White"
|
|
FontSize="14"
|
|
HorizontalAlignment="Center"
|
|
Margin="0,0,0,5"/>
|
|
|
|
<TextBox x:Name="TxtBet"
|
|
Height="40"
|
|
Width="192"
|
|
Background="DimGray"
|
|
Foreground="White"
|
|
FontSize="18"
|
|
TextAlignment="Center"
|
|
VerticalContentAlignment="Center"
|
|
PreviewTextInput="TxtBet_PreviewTextInput"
|
|
PreviewKeyDown="TxtBet_PreviewKeyDown"
|
|
DataObject.Pasting="TxtBet_Pasting"/>
|
|
</StackPanel>
|
|
|
|
<!-- Konto -->
|
|
<TextBlock Grid.Column="11"
|
|
Grid.Row="4"
|
|
Text="Konto"
|
|
Margin="0,108,0,-8"
|
|
Foreground="White"
|
|
FontSize="14"
|
|
HorizontalAlignment="Center"/>
|
|
|
|
<TextBlock x:Name="Konto"
|
|
Grid.Column="11"
|
|
Grid.Row="4"
|
|
Height="30"
|
|
Width="100"
|
|
Margin="90,133,90,37"
|
|
Background="DarkRed"
|
|
Foreground="Silver"
|
|
TextAlignment="Right"
|
|
FontSize="25"/>
|
|
</Grid>
|
|
</Window>
|