public void GetCashAmounts(Label bettor1Label, Label bettor2Label, Bettor bettor1, Bettor bettor2)
 {
     bettor1.UpdateCashLabel(bettor1Label);
     bettor2.UpdateCashLabel(bettor2Label);
 }
 public void CreateBet(string teamtobet, int betamount, Bettor bettor)
 {
     if (bettor.Cash >= betamount)
     {
         bettor.CreateBet(teamtobet, betamount);
     }
     else
     {
         MessageBox.Show("Gracz ma zbyt mało środków!");
     }
 }
        public void CheckScore(Timer timer, RichTextBox status, Bettor bettor1, Bettor bettor2, Label bettor1label, Label bettor2label, Button resetButton)
        {
            _timercount++;
            if (_roundsplayed == 30 && teams[0].Score != 16 && teams[1].Score != 16)
            {
                timer.Enabled = false;
                MessageBox.Show("Remis !");
                bettor1.CheckBet("draw", teams[0].Teamname, teams[1].Teamname);
                bettor2.CheckBet("draw", teams[0].Teamname, teams[1].Teamname);
                GetCashAmounts(bettor1label, bettor2label, bettor1, bettor2);
                resetButton.Enabled = true;
                
            }
            else
            {
                if (teams[0].Score == 16)
                {
                    timer.Enabled = false;
                    MessageBox.Show("Drużyna " + teams[0].Teamname + " wygrała mecz!");
                    bettor1.CheckBet(teams[0].Teamname, teams[0].Teamname, teams[1].Teamname);
                    bettor2.CheckBet(teams[0].Teamname, teams[0].Teamname, teams[1].Teamname);
                    GetCashAmounts(bettor1label, bettor2label, bettor1, bettor2);
                    resetButton.Enabled = true;
                }
                else if (teams[1].Score == 16)
                {
                    timer.Enabled = false;
                    MessageBox.Show("Drużyna " + teams[1].Teamname + " wygrała mecz!");
                    bettor1.CheckBet(teams[1].Teamname, teams[0].Teamname, teams[1].Teamname);
                    bettor2.CheckBet(teams[1].Teamname, teams[0].Teamname, teams[1].Teamname);
                    GetCashAmounts(bettor1label, bettor2label, bettor1, bettor2);
                    resetButton.Enabled = true;
                }
                else
                {
                    Action(status);
                }

            }
            
        }