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(); }
public void EndWorkout(DateTime endDate) { WorkoutEndDate = endDate; ResetUI(); if (CurrentQuery != null) { var query = CurrentQuery; HealthStore.StopQuery(query); } if (HeartRateQuery != null) { HealthStore.StopQuery(HeartRateQuery); } SaveWorkout(); }