예제 #1
0
 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();
 }
예제 #2
0
 private void button1_Click(object sender, RoutedEventArgs e)
 {
     accelerometer = new Accelerometer();
     accelerometer.ReadingChanged += new EventHandler<AccelerometerReadingEventArgs>(accelerometer_ReadingChanged);
     accelerometer.Start();
 }