Ejemplo n.º 1
0
        public void EndWorkout(DateTime endDate)
        {
            WorkoutEndDate = endDate;
            workoutButton.SetTitle("Begin Workout");
            activeEnergyBurnedLabel.SetText("0.0");
            if (CurrentQuery != null)
            {
                var query = CurrentQuery;
                HealthStore.StopQuery(query);
            }

            SaveWorkout();
        }
Ejemplo n.º 2
0
 public void EndWorkout(DateTime endDate)
 {
     WorkoutEndDate = endDate;
     ResetUI();
     if (CurrentQuery != null)
     {
         var query = CurrentQuery;
         HealthStore.StopQuery(query);
     }
     if (HeartRateQuery != null)
     {
         HealthStore.StopQuery(HeartRateQuery);
     }
     SaveWorkout();
 }