Exemple #1
0
        public virtual object Clone()
        {
            var newItem = new SuplementItem();

            newItem.SuplementId = SuplementId;
            newItem.Time        = Time;
            newItem.Name        = Name;
            newItem.Dosage      = Dosage;
            newItem.DosageType  = DosageType;
            newItem.Comment     = Comment;
            return(newItem);
        }
 public virtual void RemoveItem(SuplementItem item)
 {
     Items.Remove(item);
     item.SuplementsEntry = null;
 }
 public virtual void AddItem(SuplementItem item)
 {
     item.SuplementsEntry = this;
     Items.Add(item);
 }