コード例 #1
0
 public HeatIndexDisplay(WeatherData weatherData)
 {
     _weatherData = weatherData;
     _weatherData.RegisterObserver(this);
 }
コード例 #2
0
 public ForecastDisplay(WeatherData weatherData)
 {
     _weatherData = weatherData;
     _weatherData.RegisterObserver(this);
 }
コード例 #3
0
 public CurrentConditionsDisplay(WeatherData weatherData)
 {
     _weatherData = weatherData;
     _weatherData.RegisterObserver(this);
 }
コード例 #4
0
 public StatisticsDisplay(WeatherData weatherData)
 {
     _weatherData = weatherData;
     _weatherData.RegisterObserver(this);
 }