示例#1
0
        public void Bind(SippRace race)
        {
            _selectedHorse = null;
            _oddsRetriever = null;

            _toolButonStartRealTimeOdds.Enabled = true;
            _toolButonShowDoublePool.Enabled = false;
            _toolButonExactas.Enabled = false;
            _toolButonBreadAndButer.Enabled = false;
            _toolButonShowHandicappingFactors.Enabled = true;
            _toolButonCompareJockeys.Enabled = true;
            _underlinedFont = new Font(_gridPP.DefaultCellStyle.Font, FontStyle.Underline);
            _boldFont = new Font(_gridPP.DefaultCellStyle.Font.FontFamily, _gridPP.DefaultCellStyle.Font.Size, FontStyle.Bold);
            _race = race;
            UpdateScreen();
        }
示例#2
0
 public void UnsubscribeFromFeed()
 {
     StopOddsRetriever();
     _oddsRetriever = null;
 }
示例#3
0
 public BreadAndButterForm(SippRace race, SippOddsRetriever oddsRetriever)
 {
     _race = race;
     _oddsRetriever = oddsRetriever;
     InitializeComponent();
 }
示例#4
0
 private void _toolButonStartRealTimeOdds_Click(object sender, EventArgs e)
 {
     if(null != _race)
     {
         _oddsRetriever = new SippOddsRetriever(_race.Parent.TrackCode, _race.RaceNumber, _race.Parent.Date);
         _oddsRetriever.UpdateObserverDelegateEvent += UpdateRealTimeOdds;
         _toolButonStartRealTimeOdds.Enabled = false;
         _toolButonShowDoublePool.Enabled = true;
         _toolButonExactas.Enabled = true;
         _toolButonExactas.Enabled = true;
         _toolButonBreadAndButer.Enabled = true;
     }
 }
示例#5
0
 public ExoticCombinationForm(SippOddsRetriever oddsRetriver, ExoticCombinationType exoticCombinationType)
 {
     _exoticCombinationType = exoticCombinationType;
     _oddsRetriver = oddsRetriver;
     InitializeComponent();
 }