Busfahrer update 4
This commit is contained in:
@@ -90,6 +90,7 @@ namespace Casino
|
||||
users = db.GetUser();
|
||||
|
||||
UpdateAccountDisplay();
|
||||
|
||||
StartNewGame();
|
||||
}
|
||||
|
||||
@@ -111,7 +112,6 @@ namespace Casino
|
||||
|
||||
|
||||
// 1. Einsatz sofort auf dem Konto abziehen & in der Datenbank speichern
|
||||
currentgeld -= Convert.ToInt32(currentBet);
|
||||
db.UpdateGeld(users[MainWindow.currentUser].ID, currentgeld);
|
||||
UpdateAccountDisplay();
|
||||
|
||||
@@ -238,6 +238,11 @@ namespace Casino
|
||||
bool ok = (chosenColor == CardColor.Red && targetCard.IsRed) ||
|
||||
(chosenColor == CardColor.Black && !targetCard.IsRed);
|
||||
ProcessGuess(ok);
|
||||
var currentUser = users[MainWindow.currentUser];
|
||||
currentBet -= Convert.ToInt32(TxtBet.Text);
|
||||
db.UpdateGeld(currentUser.ID, currentUser.Geld);
|
||||
UpdateAccountDisplay();
|
||||
|
||||
}
|
||||
|
||||
private void BtnHigher_Click(object sender, RoutedEventArgs e) => GuessHigherLower(true);
|
||||
@@ -338,6 +343,7 @@ namespace Casino
|
||||
{
|
||||
e.Handled = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void TxtBet_Pasting(object sender, DataObjectPastingEventArgs e)
|
||||
@@ -351,5 +357,6 @@ namespace Casino
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user