private void RaceButton_Click(object sender, EventArgs e) { //get values from player1,2,3Bet fields and dogId and call bet money with them DogList.race(); //update cash values for players, mark winning dog, reset player 123 bet and dog id fields }
public RaceDog(string name) { this.name = name; this.id = DogIdGenerator.getId(); DogList.Add(this); }