Пример #1
0
        public void SetMeasurements(float temperature, float humidity, float pressure)
        {
            var args = new WeatherChangeEventArgs(temperature, humidity, pressure);

            OnWeatherChange(args);
        }
Пример #2
0
 protected virtual void OnWeatherChange(WeatherChangeEventArgs args)
 {
     WeatherChange?.Invoke(this, args);
 }
Пример #3
0
 public void Update(object sender, WeatherChangeEventArgs args)
 {
     _args = args;
     Display();
 }