private void RaceTrackSetting()                                                        //this funtion is for setting the race track
        {
            MinimumBet.Text = string.Format("Minimum Bet $1", (int)numericUpDownBets.Minimum); //Showing the minimum bet rate in label

            int startingPosition = cycleA.Right - cycleRaceTrack.Left;                         //Setting the variable for starting position from cycle 1
            int raceTrackLength  = cycleRaceTrack.Size.Width;                                  //Setting the variable of length of cycletrack

            //Setting values of the array of the class greyhound for racing for the first part of the game as suggested in assignment
            cycles[0] = new CycleTrack()
            {
                MyPictureBox     = cycleA,
                RacetrackLength  = raceTrackLength,
                StartingPosition = startingPosition
            };

            cycles[1] = new CycleTrack()
            {
                MyPictureBox     = cycleB,
                RacetrackLength  = raceTrackLength,
                StartingPosition = startingPosition
            };
            cycles[2] = new CycleTrack()
            {
                MyPictureBox     = cycleC,
                RacetrackLength  = raceTrackLength,
                StartingPosition = startingPosition
            };
            cycles[3] = new CycleTrack()
            {
                MyPictureBox     = cycleD,
                RacetrackLength  = raceTrackLength,
                StartingPosition = startingPosition
            };

            //this part is for assigning the constructor values which is created in guy class
            guys[0] = new CycleClient("Navjit", null, 60, radioButtonNavjit, labelNavjitBet);
            guys[1] = new CycleClient("Kuljit", null, 85, radioButtonKuljit, labelKuljitBet);
            guys[2] = new CycleClient("Ranjit", null, 55, radioButtonRanjit, labelRanjitBet);

            foreach (CycleClient guy in guys)
            {
                guy.UpdateLabels();//using the foreach loop for assigning the values of labels for bet
            }
        }
 public CycleBet(int Amount, int Cycle, CycleClient Bettor)//this is constructor
 {
     this.Amount = Amount;
     this.Cycle  = Cycle;
     this.Bettor = Bettor;
 }