Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 protected override void OnNavigatedFrom(NavigationEventArgs e)
 {
     _caloriesModel.Changed -= _caloriesModel_Changed;
     _caloriesModel.Stop();
 }