void UnbindGyro() { if (boundGyro == null) { return; } boundGyro.GyroUpdated -= HandleGyroUpdated; boundGyro = null; }
void BindGyro() { UnbindGyro(); boundGyro = App.Shared.Gyro; if (boundGyro == null) { return; } boundGyro.GyroUpdated += HandleGyroUpdated; }
void UnbindGyro () { if (boundGyro == null) return; boundGyro.GyroUpdated -= HandleGyroUpdated; boundGyro = null; }
void BindGyro () { UnbindGyro (); boundGyro = App.Shared.Gyro; if (boundGyro == null) return; boundGyro.GyroUpdated += HandleGyroUpdated; }
public App (IAdapter adapter, IGyro gyro) { Shared = this; Adapter = adapter; Gyro = gyro; }
public App(IAdapter adapter, IGyro gyro) { Shared = this; Adapter = adapter; Gyro = gyro; }