コード例 #1
0
        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;
        }
コード例 #2
0
 public void Dispose()
 {
     _bmp180?.Dispose();
     _bmp180 = null;
 }