private void start_Click(object sender, RoutedEventArgs e) { current=i = 0; accelerometer = new Accelerometer(); accelerometer.ReadingChanged += new EventHandler<AccelerometerReadingEventArgs>(accelerometer_ReadingChanged); accelerometer.Start(); timer.Start(); }
private void button1_Click(object sender, RoutedEventArgs e) { accelerometer = new Accelerometer(); accelerometer.ReadingChanged += new EventHandler<AccelerometerReadingEventArgs>(accelerometer_ReadingChanged); accelerometer.Start(); }