示例#1
0
 public CurrentConditionsDisplay(WeatherData weatherData)
 {
     _weatherData = weatherData;
     _weatherData.registerObserver(this);
 }
示例#2
0
 public ForecastDisplay(WeatherData weatherData, float currentPressure)
 {
     _weatherData     = weatherData;
     _currentPressure = currentPressure;
     _weatherData.registerObserver(this);
 }