Example #1
0
        public static void Refresh(EmployeeOrder tmp)
        {
            OrderInfo tmpInfo = GetExistingByPrimaryKey(tmp.OrderID);

            if (tmpInfo == null)
            {
                return;
            }
            tmpInfo.RefreshFields(tmp);
        }
Example #2
0
 private void RefreshFields(EmployeeOrder tmp)
 {
     _CustomerID     = tmp.CustomerID;
     _OrderDate      = tmp.OrderDate;
     _RequiredDate   = tmp.RequiredDate;
     _ShippedDate    = tmp.ShippedDate;
     _ShipVia        = tmp.ShipVia;
     _Freight        = tmp.Freight;
     _ShipName       = tmp.ShipName;
     _ShipAddress    = tmp.ShipAddress;
     _ShipCity       = tmp.ShipCity;
     _ShipRegion     = tmp.ShipRegion;
     _ShipPostalCode = tmp.ShipPostalCode;
     _ShipCountry    = tmp.ShipCountry;
     _OrderInfoExtension.Refresh(this);
     _MyCustomer = null;
     _MyEmployee = null;
     _MyShipper  = null;
     OnChange();            // raise an event
 }