Fertige abgabe
This commit is contained in:
parent
e054e6c31b
commit
12487a8e02
@ -36,3 +36,4 @@ namespace LottoProject
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -7,6 +7,8 @@
|
||||
<StackPanel DockPanel.Dock="Bottom" Margin="0,10,0,0">
|
||||
<TextBlock Text="Selected Numbers:" FontWeight="Bold" FontSize="16" />
|
||||
<TextBlock x:Name="ResultTextBlock" FontSize="14" Foreground="DarkBlue" TextWrapping="Wrap"/>
|
||||
<TextBlock Text="Startgeld (€):" FontWeight="Bold" Margin="0,10,0,0"/>
|
||||
<TextBox x:Name="StartgeldTextBox" Text="2000" Width="100" Margin="0,0,0,10"/>
|
||||
<Button Content="Ziehen" Margin="0,10,0,0" Click="DrawButton_Click" Height="30"/>
|
||||
<Button Content="Simulation starten" Margin="0,10,0,0" Click="SimulationButton_Click" Height="30"/>
|
||||
</StackPanel>
|
||||
|
@ -95,7 +95,13 @@ namespace LottoNumberBoard
|
||||
|
||||
int[] meineZahlen = selectedNumbers.ToArray();
|
||||
int[] trefferVerteilung = new int[7];
|
||||
int meinGeld = 2000;
|
||||
int meinGeld;
|
||||
if (!int.TryParse(StartgeldTextBox.Text, out meinGeld))
|
||||
{
|
||||
MessageBox.Show("Bitte gültigen Startgeldbetrag eingeben!", "Fehler", MessageBoxButton.OK, MessageBoxImage.Error);
|
||||
return;
|
||||
}
|
||||
|
||||
int versuche = 1000;
|
||||
|
||||
var stopwatch = new Stopwatch();
|
||||
|
Loading…
x
Reference in New Issue
Block a user