merge_1
This commit is contained in:
@@ -156,6 +156,8 @@ namespace Casino
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void StartRound()
|
private void StartRound()
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
if (currentBet <= 0 || currentBet > CurrentUser.Geld)
|
if (currentBet <= 0 || currentBet > CurrentUser.Geld)
|
||||||
{
|
{
|
||||||
@@ -177,6 +179,17 @@ namespace Casino
|
|||||||
UpdateWinDisplay();
|
UpdateWinDisplay();
|
||||||
SetPhaseUI();
|
SetPhaseUI();
|
||||||
}
|
}
|
||||||
|
catch (NullReferenceException)
|
||||||
|
{
|
||||||
|
MessageBox.Show(
|
||||||
|
"Bitte ein Betrag eingeben",
|
||||||
|
"Fehlermeldung 101",
|
||||||
|
MessageBoxButton.OK,
|
||||||
|
MessageBoxImage.Information);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
private void LoadCards()
|
private void LoadCards()
|
||||||
{
|
{
|
||||||
|
|||||||
+14
-2
@@ -131,15 +131,27 @@ namespace Casino
|
|||||||
|
|
||||||
private async void Spin(object sender, RoutedEventArgs e)
|
private async void Spin(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
int einsatz = Convert.ToInt32(einsatzFeld.Text);
|
int einsatz = Convert.ToInt32(einsatzFeld.Text);
|
||||||
users[MainWindow.currentUser].Geld-=einsatz;
|
users[MainWindow.currentUser].Geld -= einsatz;
|
||||||
Konto.Text = users[MainWindow.currentUser].Geld.ToString();
|
Konto.Text = users[MainWindow.currentUser].Geld.ToString();
|
||||||
await Spin();
|
await Spin();
|
||||||
users[MainWindow.currentUser].Geld += CheckWin(currentSlot,einsatz);
|
users[MainWindow.currentUser].Geld += CheckWin(currentSlot, einsatz);
|
||||||
Konto.Text = users[MainWindow.currentUser].Geld.ToString();
|
Konto.Text = users[MainWindow.currentUser].Geld.ToString();
|
||||||
db.UpdateGeld(
|
db.UpdateGeld(
|
||||||
users[MainWindow.currentUser].ID,
|
users[MainWindow.currentUser].ID,
|
||||||
users[MainWindow.currentUser].Geld);
|
users[MainWindow.currentUser].Geld);
|
||||||
|
|
||||||
|
/* catch (NullReferenceException)
|
||||||
|
{
|
||||||
|
MessageBox.Show(
|
||||||
|
"Bitte ein Betrag eingeben",
|
||||||
|
"Fehlermeldung 101",
|
||||||
|
MessageBoxButton.OK,
|
||||||
|
MessageBoxImage.Information);
|
||||||
|
}*/
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Hauptmenue(object sender, RoutedEventArgs e)
|
private void Hauptmenue(object sender, RoutedEventArgs e)
|
||||||
|
|||||||
Reference in New Issue
Block a user