Beispiel #1
0
        public virtual StrengthTrainingItemDTO Copy()
        {
            StrengthTrainingItemDTO entry = new StrengthTrainingItemDTO();

            entry.Comment            = Comment;
            entry.ExerciseId         = ExerciseId;
            entry.Position           = Position;
            entry.SuperSetGroup      = SuperSetGroup;
            entry.TrainingPlanItemId = TrainingPlanItemId;
            foreach (var serie in Series)
            {
                entry.AddSerie(serie.Copy());
            }
            return(entry);
        }
 public virtual void RemoveEntry(StrengthTrainingItemDTO entry)
 {
     Entries.Remove(entry);
     entry.StrengthTrainingEntry = null;
 }
 public virtual void AddEntry(StrengthTrainingItemDTO entry)
 {
     entry.StrengthTrainingEntry = this;
     Entries.Add(entry);
 }