Ejemplo n.º 1
0
        private void OnInitialLoad(object sender, EventArgs e)
        {
            this.Text = string.Format("Time Graphs For {0}", _horse.Name);
            _labelHorseName.Text = string.Format("{0} Race# {1} Horse# {2} Name: {3} ",_horse.Parent.Parent.TrackCode,  _horse.Parent.RaceNumber,  _horse.ProgramNumber, _horse.Name);

            if (_horse.CorrespondingBrisHorse.PastPerformances.Count <=0 )
            {
                return;
            }

            for (int i = 0; i < _horse.CorrespondingBrisHorse.PastPerformances.Count; ++i)
            {
                var ctrl = new XRayCtrl();
                _panel.Controls.Add(ctrl);
                _ctrls.Add(ctrl);
            }

            int graphIndex = 0;
            for (int i = _horse.CorrespondingBrisHorse.PastPerformances.Count-1; i >=0 ; --i)
            {
                _ctrls[graphIndex].Width = 300;
                _ctrls[graphIndex].Height = 280;

                BrisPastPerformance pp = _horse.CorrespondingBrisHorse.PastPerformances[i];
                _ctrls[graphIndex].Bind(pp.Date, pp.TrackCode, pp.Parent.Name, Convert.ToInt32(pp.RaceNumber));
                ++graphIndex;
            }
        }
Ejemplo n.º 2
0
 public void BindXRayCtrl(XRayCtrl xRayCtrl)
 {
     _cynthiaProjectionsCtrl.BindXRayCtrl(xRayCtrl);
 }
Ejemplo n.º 3
0
 public void BindXRayCtrl(XRayCtrl ctrl)
 {
     _xrayCtrl = ctrl;
 }