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(); }
public void UnsubscribeFromFeed() { StopOddsRetriever(); _oddsRetriever = null; }
public BreadAndButterForm(SippRace race, SippOddsRetriever oddsRetriever) { _race = race; _oddsRetriever = oddsRetriever; InitializeComponent(); }
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; } }
public ExoticCombinationForm(SippOddsRetriever oddsRetriver, ExoticCombinationType exoticCombinationType) { _exoticCombinationType = exoticCombinationType; _oddsRetriver = oddsRetriver; InitializeComponent(); }