コード例 #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();
 }