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