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