merge_1
This commit is contained in:
+29
-16
@@ -157,25 +157,38 @@ namespace Casino
|
||||
|
||||
private void StartRound()
|
||||
{
|
||||
if (currentBet <= 0 || currentBet > CurrentUser.Geld)
|
||||
try
|
||||
{
|
||||
ShowWaitingState();
|
||||
return;
|
||||
if (currentBet <= 0 || currentBet > CurrentUser.Geld)
|
||||
{
|
||||
ShowWaitingState();
|
||||
return;
|
||||
}
|
||||
|
||||
// Einsatz vom Konto abziehen
|
||||
CurrentUser.Geld -= Convert.ToInt32(currentBet);
|
||||
SaveAccount();
|
||||
|
||||
currentProfit = 0;
|
||||
currentPhase = 0;
|
||||
roundRunning = true;
|
||||
TxtBet.IsEnabled = false;
|
||||
|
||||
LoadCards();
|
||||
UpdateHandUI();
|
||||
UpdateWinDisplay();
|
||||
SetPhaseUI();
|
||||
}
|
||||
catch (NullReferenceException)
|
||||
{
|
||||
MessageBox.Show(
|
||||
"Bitte ein Betrag eingeben",
|
||||
"Fehlermeldung 101",
|
||||
MessageBoxButton.OK,
|
||||
MessageBoxImage.Information);
|
||||
}
|
||||
|
||||
// Einsatz vom Konto abziehen
|
||||
CurrentUser.Geld -= Convert.ToInt32(currentBet);
|
||||
SaveAccount();
|
||||
|
||||
currentProfit = 0;
|
||||
currentPhase = 0;
|
||||
roundRunning = true;
|
||||
TxtBet.IsEnabled = false;
|
||||
|
||||
LoadCards();
|
||||
UpdateHandUI();
|
||||
UpdateWinDisplay();
|
||||
SetPhaseUI();
|
||||
|
||||
}
|
||||
|
||||
private void LoadCards()
|
||||
|
||||
Reference in New Issue
Block a user