コード例 #1
0
 private void reset()
 {
     button1click = 0;
     hitMeClick   = 0;
     dealer.ResetHand(); //resets all variables for dealer
     player.ResetHand(); //resets all variables for player
     deckOfCards.resetCurrentCard();
     deckOfCards.ShuffleCards(deckOfCards.allCards);
     button10.Visible = false;
     button11.Visible = false;
     button12.Visible = false;
     label1.Visible   = false;
     button5.Image    = deckOfCards.setBackImage();
     label3.Text      = null;
     label4.Text      = null;
     label7.Text      = null;
     label1.Text      = null;
     button7.Visible  = false;
     button8.Visible  = false;
     button9.Visible  = false;
     label11.Text     = null;
     label12.Text     = null;
     label10.Text     = null;
     label22.Text     = null;
     textBox1.Text    = "100";
     button13.Enabled = true;
     betamt           = 0;
     click            = 0;
     label5.Text      = "Your total = ";
     label13.Text     = "Dealers total showing = " + dealer.GetTotalValue();
     money.SetBetAmount(betamt);
     money.resetallBets();
 }