partial void Start() { this.gyroscope = new Microsoft.Devices.Sensors.Gyroscope() { TimeBetweenUpdates = TimeSpan.FromMilliseconds((long)this.Interval) }; this.gyroscope.CurrentValueChanged += gyroscope_CurrentValueChanged; this.gyroscope.Start(); }
partial void Start() { this.gyroscope = new Microsoft.Devices.Sensors.Gyroscope() { TimeBetweenUpdates = TimeSpan.FromMilliseconds((long)this.Interval) }; this.gyroscope.CurrentValueChanged += gyroscope_CurrentValueChanged; this.gyroscope.Start(); }
partial void Stop() { this.gyroscope.CurrentValueChanged -= gyroscope_CurrentValueChanged; this.gyroscope.Stop(); this.gyroscope = null; }
partial void Stop() { this.gyroscope.CurrentValueChanged -= gyroscope_CurrentValueChanged; this.gyroscope.Stop(); this.gyroscope = null; }