public void SetMeasurements(float temperature, float humidity, float pressure) { var args = new WeatherChangeEventArgs(temperature, humidity, pressure); OnWeatherChange(args); }
protected virtual void OnWeatherChange(WeatherChangeEventArgs args) { WeatherChange?.Invoke(this, args); }
public void Update(object sender, WeatherChangeEventArgs args) { _args = args; Display(); }