protected override void OnNavigatingFrom(NavigatingCancelEventArgs e) { base.OnNavigatingFrom(e); _timer.Stop(); _tempHum?.Dispose(); _tempHum = null; _barometer?.Dispose(); _barometer = null; _luxMeter?.Dispose(); _luxMeter = null; _magnetometer?.Dispose(); _magnetometer = null; }
public void Dispose() { _bmp180?.Dispose(); _bmp180 = null; }