Пример #1
0
        public async void OnSensorChanged(SensorEvent e)
        {
            await StepController.UpdateTodaySteps_DB();

            await StepController.UpdateTodaySteps_Properties();

            Steps++;

            Console.WriteLine(e.ToString());
        }
Пример #2
0
 public void OnSensorChanged(SensorEvent e)
 {
     if (e.Sensor.Type == SensorType.Proximity)
     {
         lock (_locker)
         {
             location = e.ToString();
             Monitor.Pulse(_locker);
         }
     }
 }