public void Update(object sender, WeatherDataEventArgs we)
        {
            this._temperature = we.Temperature;
            this._humidity    = we.Humidity;

            Display();
        }
示例#2
0
 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);
        }