Example #1
0
 public virtual void AddItem(SalesReceiptItem item)
 {
     item.Receipt = this;
     items.Insert(0, item);
     if (ItemsChanged != null)
     {
         ItemsChanged(this, null);
     }
 }
Example #2
0
 public virtual void RemoveItem(SalesReceiptItem item)
 {
     if (items.Contains(item))
     {
         items.Remove(item);
         if (ItemsChanged != null)
         {
             ItemsChanged(this, null);
         }
     }
 }
Example #3
0
 public SalesReceiptItemEventArgs(SalesReceiptItem item)
 {
     this.ReceiptItem = item;
 }