private void RefreshFields(CustomerDemographicCustomerCustomerDemo tmp) { _CustomerCustomerDemoInfoExtension.Refresh(this); _MyCustomer = null; _MyCustomerDemographic = null; OnChange(); // raise an event }
public static void Refresh(CustomerDemographic myCustomerDemographic, CustomerDemographicCustomerCustomerDemo tmp) { CustomerCustomerDemoInfo tmpInfo = GetExistingByPrimaryKey(tmp.CustomerID, myCustomerDemographic.CustomerTypeID); if (tmpInfo == null) { return; } tmpInfo.RefreshFields(tmp); }