Exemplo n.º 1
0
        partial void Start()
        {
            this.gyroscope = new Microsoft.Devices.Sensors.Gyroscope()
            {
                TimeBetweenUpdates = TimeSpan.FromMilliseconds((long)this.Interval)
            };

            this.gyroscope.CurrentValueChanged += gyroscope_CurrentValueChanged;
            this.gyroscope.Start();
        }
Exemplo n.º 2
0
        partial void Start()
        {
            this.gyroscope = new Microsoft.Devices.Sensors.Gyroscope()
            {
                TimeBetweenUpdates = TimeSpan.FromMilliseconds((long)this.Interval)
            };

            this.gyroscope.CurrentValueChanged += gyroscope_CurrentValueChanged;
            this.gyroscope.Start();
        }
Exemplo n.º 3
0
 partial void Stop()
 {
     this.gyroscope.CurrentValueChanged -= gyroscope_CurrentValueChanged;
     this.gyroscope.Stop();
     this.gyroscope = null;
 }
Exemplo n.º 4
0
 partial void Stop()
 {
     this.gyroscope.CurrentValueChanged -= gyroscope_CurrentValueChanged;
     this.gyroscope.Stop();
     this.gyroscope = null;
 }