Example #1
0
        public void AddEntry(EntryObjectDTO entry)
        {
            IMovable movable = entry as IMovable;

            if (movable != null)
            {
                //if the entry requires a date then set the date from TrainingDay object
                movable.Move(this.TrainingDate);
            }
            entry.TrainingDay = this;
            Objects.Add(entry);
        }
Example #2
0
 public void RemoveEntry(EntryObjectDTO entry)
 {
     Objects.Remove(entry);
     //entry.TrainingDay = null;
 }