public HeatIndexDisplay(WeatherData weatherData)
 {
     _weatherData = weatherData;
     _weatherData.RegisterObserver(this);
 }
예제 #2
0
 public ForecastDisplay(WeatherData weatherData)
 {
     _weatherData = weatherData;
     _weatherData.RegisterObserver(this);
 }
 public CurrentConditionsDisplay(WeatherData weatherData)
 {
     _weatherData = weatherData;
     _weatherData.RegisterObserver(this);
 }
 public StatisticsDisplay(WeatherData weatherData)
 {
     _weatherData = weatherData;
     _weatherData.RegisterObserver(this);
 }