Ejemplo n.º 1
0
        public virtual void UpdateDst(Stock stock)
        {
            DstStock.RetailCost   = stock.RetailCost;
            DstStock.RetailMarkup = stock.RetailMarkup;
            RetailCost            = stock.RetailCost;
            OnPropertyChanged(nameof(RegistryCost));
            RetailMarkup = stock.RetailMarkup;
            OnPropertyChanged(nameof(RetailMarkup));
            OnPropertyChanged(nameof(RetailSum));

            var quantity = stock.Quantity;

            SrcStock.Release(Quantity);
            SrcStock.Reserve(quantity);
            DstStock.Release(Quantity);
            DstStock.Reserve(quantity);
            Quantity = quantity;
        }
Ejemplo n.º 2
0
 public virtual void UpdateQuantity(decimal quantity)
 {
     SrcStock.Release(Quantity);
     SrcStock.Reserve(quantity);
     Quantity = quantity;
 }