public virtual void AddItem(TruckLoadItem item) { item.Load = this; items.Insert(0, item); if (ItemsChanged != null) { ItemsChanged(this, null); } }
public virtual void RemoveItem(TruckLoadItem item) { if (items.Contains(item)) { items.Remove(item); if (ItemsChanged != null) { ItemsChanged(this, null); } } }
public virtual void AddItem(TruckLoadItem item) { AddItem(new TruckReturnItem(item)); }
public TruckReturnItem(TruckLoadItem loadItem, double quantity) { this.LoadItem = loadItem; this.Quantity = quantity; }
public TruckReturnItem(TruckLoadItem loadItem) : this(loadItem, 0) { }
public InvoiceItem(TruckLoadItem i) { this.Item = i.Item; this.Quantity = i.Quantity; this.UnitPrice = i.Price; }