public CycleClient(string Name, CycleBet MyBet, int Cash, RadioButton MyRadioButton, Label MyLabel) //this is constructor { this.Name = Name; this.MyBet = MyBet; this.Cash = Cash; this.MyRadioButton = MyRadioButton; this.MyLabel = MyLabel; }
public bool PlaceBet(int Amount, int Cycle)//place bet method for betting { if (Amount <= Cash) { //MyLabel.Text = "Busted"; MyBet = new CycleBet(Amount, Cycle, this); return(true); } return(false); }