protected virtual void OnOrderChanged(ManagedPropertyChangedEventArgs e) { var value = e.NewValue as PurchaseOrder; var children = this.StorageInItemList; children.Clear(); if (value != null) { foreach (PurchaseOrderItem item in value.PurchaseOrderItemList) { if (item.AmountLeft > 0) { var siItem = new StorageInBillItem { Id = RafyEnvironment.NewLocalId(), Product = item.Product, Amount = item.AmountLeft, UnitPrice = item.RawPrice }; children.Add(siItem); } } } this.NotifyPropertyChanged(StorageInItemListProperty); this.NotifyPropertyChanged(View_SupplierNameProperty); }
public void Insert(int index, StorageInBillItem entity) { base.Insert(index, entity); }
public int IndexOf(StorageInBillItem entity) { return(base.IndexOf(entity)); }
public bool Contains(StorageInBillItem entity) { return(base.Contains(entity)); }
public void Add(StorageInBillItem entity) { base.Add(entity); }
public bool Remove(StorageInBillItem entity) { return(base.Remove(entity)); }