Exemple #1
0
        public void Update(Measurements newMeasurements)
        {
            this.measurements = newMeasurements;
            float temp = this.measurements.temperature;

            tempSum += temp;
            numReadings++;

            if (temp > maxTemp)
            {
                maxTemp = temp;
            }

            if (temp < minTemp)
            {
                minTemp = temp;
            }

            Display();
        }
 public void Update(Measurements newMeasurements)
 {
     this.measurements = newMeasurements;
     Display();
 }
 public void SetMeasurements(Measurements newMeasurements)
 {
     this.measurements = newMeasurements;
     MeasurementsChanged();
 }