Ejemplo n.º 1
0
 public void PrepareCopiedStrengthTraining(StrengthTrainingEntryDTO entry, CopyStrengthTrainingMode mode)
 {
     foreach (var dto in entry.Entries)
     {
         PrepareCopiedStrengthTraining(dto, mode);
     }
 }
Ejemplo n.º 2
0
 public void PrepareCopiedStrengthTraining(StrengthTrainingItemDTO dto, CopyStrengthTrainingMode mode)
 {
     if (Settings.CopyStrengthTrainingMode == CopyStrengthTrainingMode.OnlyExercises)
     {
         dto.Series.Clear();
     }
     else if (Settings.CopyStrengthTrainingMode == CopyStrengthTrainingMode.WithoutSetsData)
     {
         foreach (var serieDto in dto.Series)
         {
             serieDto.RepetitionNumber = null;
             serieDto.Weight           = null;
         }
     }
 }