Beispiel #1
0
 private void PlayerWin(double bet)
 {
     double winnings = bet * 1.5;
     var winMessage = new WinnerMessage(playerScore, hiddenDealerScore, winnings);
     winMessage.StartPosition = FormStartPosition.Manual;
     winMessage.Location = new Point(700, 100);
     winMessage.ShowDialog(this);
     playerWins += 1;
     txtPlayerWin.Text = playerWins.ToString();
     currentMoney += winnings;
     txtMoney.Text = currentMoney.ToString("c");
 }