static void Main(string[] args) { WeatherConditionStation weatherStation = new WeatherConditionStation(); while (true) { PhoneDisplay phoneDisplay = new PhoneDisplay(weatherStation); weatherStation.Add(phoneDisplay); weatherStation.Notify(); Thread.Sleep(5000); } }
public PhoneDisplay(WeatherConditionStation weatherStation) { _weatherStation = weatherStation; }