public void SetupRaceTrack() { objbets[0] = new Beting() { imgcarshow = carPB1, posstart = raceTrackPictureBox.Left, racestames = raceTrackPictureBox.Width - carPB1.Width, radomsteps = myRandomizer }; objbets[1] = new Beting() { imgcarshow = carPB2, posstart = raceTrackPictureBox.Left, racestames = raceTrackPictureBox.Width - carPB2.Width, radomsteps = myRandomizer }; objbets[2] = new Beting() { imgcarshow = carPb3, posstart = raceTrackPictureBox.Left, racestames = raceTrackPictureBox.Width - carPb3.Width, radomsteps = myRandomizer }; objbets[3] = new Beting() { imgcarshow = carpb4, posstart = raceTrackPictureBox.Left, racestames = raceTrackPictureBox.Width - carpb4.Width, radomsteps = myRandomizer }; objraceing[0] = new racecars("Jim", 50, Jimrb, Jimlb); objraceing[1] = new racecars("Kane", 50, Kanerb, kanelb); objraceing[2] = new racecars("kat", 50, katrb, katlb); foreach (var guy in objraceing) { guy.carbeetingrace(0, 0); guy.UpdateLb(); } minimumBetLabel.Text = "Minimum bet: " + betsstart + " bucks"; betupdown.Minimum = betsstart; }
public placingbet(racecars beters) { carbets = beters; }