public void Update(object sender, WeatherDataEventArgs we) { this._temperature = we.Temperature; this._humidity = we.Humidity; Display(); }
public void Update(object sender, WeatherDataEventArgs we) { this._temperatures.Add(we.Temperature); Display(); }
public void SetMeasurements(float temperature, float humidity, float pressure) { WeatherDataEventArgs weatherArgs = new WeatherDataEventArgs(temperature, humidity, pressure); MeasurementsChanged(this, weatherArgs); }