Esempio n. 1
0
        public void UpdateExercise(ExerciseInstance instance)
        {
            var index = ListOfExercises.FindIndex(e => e.ExerciseID == instance.ExerciseID);

            if (index > -1)
            {
                var oldInstance = ListOfExercises[index];
                instance.ExerciseID    = oldInstance.ExerciseID;
                ListOfExercises[index] = instance;
            }
        }
Esempio n. 2
0
 public void AddExercise(ExerciseInstance exercise)
 {
     ListOfExercises.Add(exercise);
 }