public BreadAndButterForm(Race race,OddsRetriever oddsRetriever) { _race = race; _oddsRetriever = oddsRetriever; InitializeComponent(); }
private void ParentForm_FormClosing(object sender, FormClosingEventArgs e) { if (null != _oddsRetriever) { _oddsRetriever.StopIt(); _oddsRetriever = null; } }
private void StartOddsRetriever() { _oddsRetriever = new OddsRetriever(_race.Parent.TrackCode, _race.RaceNumber); _oddsRetriever.UpdateObserverDelegateEvent += UpdateRealTimeOdds; _buttonRealTimeOdds.Image = Properties.Resources.stop_feed; }
public ExoticCombinationForm(OddsRetriever oddsRetriver, ExoticCombinationType exoticCombinationType) { _exoticCombinationType = exoticCombinationType; _oddsRetriver = oddsRetriver; InitializeComponent(); }