private void Finish_Click(object sender, RoutedEventArgs e) { _caloriesModel.Changed -= _caloriesModel_Changed; _caloriesModel.Stop(); App.updateStatistics = true; WorkoutSummaryParams.numberOfExercisesPerformed = m_nextExrciseIndex; WorkoutSummaryParams.numberOfExercisesTotal = ExersiceIds.Count; WorkoutSummaryParams.WorkoutId = currentWorkout.Id; Frame.Navigate(typeof(WorkoutSummary), null); }
protected override void OnNavigatedFrom(NavigationEventArgs e) { _caloriesModel.Changed -= _caloriesModel_Changed; _caloriesModel.Stop(); }