Exemplo n.º 1
0
 private void RefreshFields(ProductOrderDetail tmp)
 {
     _UnitPrice = tmp.UnitPrice;
     _Quantity  = tmp.Quantity;
     _Discount  = tmp.Discount;
     _OrderDetailInfoExtension.Refresh(this);
     _MyOrder   = null;
     _MyProduct = null;
     OnChange();            // raise an event
 }
Exemplo n.º 2
0
        public static void Refresh(Product myProduct, ProductOrderDetail tmp)
        {
            OrderDetailInfo tmpInfo = GetExistingByPrimaryKey(tmp.OrderID, myProduct.ProductID);

            if (tmpInfo == null)
            {
                return;
            }
            tmpInfo.RefreshFields(tmp);
        }