public void Dispose() { Changed?.Dispose(); if (IStartedCompass) { Sensors.Compass.Stop(); } if (IStartedGyroscope) { Sensors.Gyroscope.Stop(); } if (IStartedAccelerometer) { Sensors.Accelerometer.Stop(); } }