public Display(Observable <WeatherInfo> weatherStationInside, Observable <WeatherInfo> weatherStationOutside, int priority) { _weatherStationInside = weatherStationInside; _weatherStationOutside = weatherStationOutside; _weatherStationInside.RegisterObserver(this, priority); _weatherStationOutside.RegisterObserver(this, priority); }
public StatsDisplay(Observable <WeatherInfo> weatherStationInside, Observable <WeatherInfo> weatherStationOutside, int priority) { _weatherStationInside = weatherStationInside; _weatherStationOutside = weatherStationOutside; _weatherStationInside.RegisterObserver(this, priority); _weatherStationOutside.RegisterObserver(this, priority); _statsDisplayInfoDictionary.Add(_weatherStationInside, new StatsDisplayInfo()); _statsDisplayInfoDictionary.Add(_weatherStationOutside, new StatsDisplayInfo()); }