コード例 #1
0
        /// <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);
        }
コード例 #2
0
 /// <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);
 }