Esempio n. 1
0
        private void OnTrackStatistics(object sender, EventArgs e)
        {
            try
            {

                WinnersTimeForm form = new WinnersTimeForm("BEL", "D", false,(int)Utilities.YARDS_IN_A_FURLONG * 6, " ");
                form.ShowDialog();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Esempio n. 2
0
        private void OnRaceClassificationCliked(object sender, EventArgs e)
        {
            try
            {
                int distance = _race.CorrespondingBrisRace.DistanceInYards;
                string trackCode = _race.Parent.TrackCode;
                string surface = "D";

                if (_race.CorrespondingBrisRace.Horses[0].TodaysRaceIsInTurf)
                {
                    surface = "T";
                }
                else if (_race.CorrespondingBrisRace.Horses[0].TodaysRaceIsSynthetic)
                {
                    surface = "A";
                }

                bool innerTrack = _race.CorrespondingBrisRace.Horses[0].TodaysRaceIsInInnerTrack;
                string aboutDistanceFlag = _race.CorrespondingBrisRace.IsAboutDistance ? "A" : " ";
                var f = new WinnersTimeForm(trackCode, surface, innerTrack, distance, aboutDistanceFlag);
                f.ShowDialog();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }