Пример #1
0
 private static void GenerateEmptySets(int totalSets, List <ExerciseSet> exerciseSets)
 {
     for (int i = 0; i < totalSets; i++)
     {
         ExerciseSet set = new ExerciseSet();
         exerciseSets.Add(set);
     }
 }
Пример #2
0
        private static ExerciseSet CreateSet(int currentLeadReps, DateTime currentDay, int i)
        {
            var set = new ExerciseSet();

            set.Day                  = currentDay;
            set.SetNumber            = i + 1;
            set.Repetitions          = SetRepetitions(currentLeadReps, i);
            set.RepetitionsCompleted = 0;
            return(set);
        }
        public DiscreteExercisePlan(bool randomGenerate)
        {
            this.Name      = "Randomised Exercise";
            SetsOfExercise = new List <ExerciseSet>();
            var set = new ExerciseSet();

            set.Day                  = DateTime.Parse("01/01/2000");
            set.Repetitions          = 50;
            set.RepetitionsCompleted = 25;
            set.SetNumber            = 1;
            SetsOfExercise.Add(set);
        }