/// <summary> /// Existing <see cref="CustomerInfo"/> object is updated by <see cref="CustomerEdit"/> Saved event. /// </summary> internal static CustomerInfo LoadInfo(CustomerEdit customerEdit) { var info = new CustomerInfo(); info.UpdatePropertiesOnSaved(customerEdit); return(info); }
/// <summary> /// Properties on <see cref="CustomerInfo"/> object are updated by <see cref="CustomerEdit"/> Saved event. /// </summary> internal void UpdatePropertiesOnSaved(CustomerEdit customerEdit) { LoadProperty(CustomerIdProperty, customerEdit.CustomerId); LoadProperty(NameProperty, customerEdit.Name); LoadProperty(FiscalNumberProperty, customerEdit.FiscalNumber); }