private void ClearChart()
        {
            if (_isInUpdate)
            {
                return;
            }
            _isInUpdate = true;

            UnitsDescriptor units = new UnitsDescriptor();

            _chart1.UpdateChartTemperature(null, units, false);
            _chart2.UpdateChartHumidity(null, units, false);
            _chart3.UpdateChartAirPressure(null, units, false);

            _isInUpdate = false;
        }
Esempio n. 2
0
 public BMDatabase(BMDatabase db)
 {
     Device = db.Device;
     Records.AddRange(db.Records);
     Units = new UnitsDescriptor(db.Units);
 }
Esempio n. 3
0
 public double GetAirPressure(UnitsDescriptor units)
 {
     return(units.AirPressureUnits.Convert(AirPressure));
 }
Esempio n. 4
0
 public double GetAirDewPoint(UnitsDescriptor units)
 {
     return(this.GetTemperature(units) - ((100 - this.AirHumidity) / 5));
 }
Esempio n. 5
0
 public double GetTemperature(UnitsDescriptor units)
 {
     return(units.TemperatureUnits.Convert(Temperature));
 }