Example #1
0
 public void Add()
 {
     var item = new CompactingJoItem();
     item.CompactingJo = this;
     item.PropertyChanged += item_PropertyChanged;
     Items.Add(item);
     this.CompactingJoItems.Add(item);
     CalcualteTotalAmount();
 }
Example #2
0
        public void Remove(CompactingJoItem item)
        {
            item.PropertyChanged -= item_PropertyChanged;
            Items.Remove(item);
            
            if (CompactingJoItems.Contains(item))
                CompactingJoItems.Remove(item);

            if (item.CompactingJoId != 0)
                DBResources.Instance.MarkObjectForDelete(item);

            CalcualteTotalAmount();
        }
 public void Delete(CompactingJoItem item)
 {
     JO.Remove(item);
 }