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; }
public BMDatabase(BMDatabase db) { Device = db.Device; Records.AddRange(db.Records); Units = new UnitsDescriptor(db.Units); }
public double GetAirPressure(UnitsDescriptor units) { return(units.AirPressureUnits.Convert(AirPressure)); }
public double GetAirDewPoint(UnitsDescriptor units) { return(this.GetTemperature(units) - ((100 - this.AirHumidity) / 5)); }
public double GetTemperature(UnitsDescriptor units) { return(units.TemperatureUnits.Convert(Temperature)); }