예제 #1
0
        private void DealerWin(double bet)
        {
            var loseMessage = new LoserMessage(playerScore, hiddenDealerScore, bet);

            loseMessage.StartPosition = FormStartPosition.Manual;
            loseMessage.Location      = new Point(700, 100);
            loseMessage.ShowDialog(this);
            dealerWins       += 1;
            txtDealerWin.Text = dealerWins.ToString();
            currentMoney     -= bet;
            txtMoney.Text     = currentMoney.ToString("c");
        }
예제 #2
0
 private void DealerWin(double bet)
 {
     var loseMessage = new LoserMessage(playerScore, hiddenDealerScore, bet);
     loseMessage.StartPosition = FormStartPosition.Manual;
     loseMessage.Location = new Point(700, 100);
     loseMessage.ShowDialog(this);
     dealerWins += 1;
     txtDealerWin.Text = dealerWins.ToString();
     currentMoney -= bet;
     txtMoney.Text = currentMoney.ToString("c");
 }