Exemplo n.º 1
0
 private void RefreshFields(OrderOrderDetail 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(Order myOrder, OrderOrderDetail tmp)
        {
            OrderDetailInfo tmpInfo = GetExistingByPrimaryKey(myOrder.OrderID, tmp.ProductID);

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