Exemplo n.º 1
0
 private void CashPlusOnButton(object sender, EventArgs e)
 {
     if (TheGame.Timer < 3)
     {
         return;
     }
     TheGame.BetOn((BetOnPicture)sender);
     if (Form1.CurrPlayer.Money > 0)
     {
         Form1.CurrPlayer.Money--;
     }
     else
     {
         MessageBox.Show("You dont have money!");
     }
     loadTheBets();
     lbl_Bet.Text = "Your bet " + TheGame.Bets.Count() + "$";
     changeMoney();
 }