예제 #1
0
        /// <summary>
        /// Existing <see cref="ProductTypeCachedInfo"/> object is updated by <see cref="ProductTypeItem"/> Saved event.
        /// </summary>
        internal static ProductTypeCachedInfo LoadInfo(ProductTypeItem productTypeItem)
        {
            var info = new ProductTypeCachedInfo();

            info.UpdatePropertiesOnSaved(productTypeItem);
            return(info);
        }
예제 #2
0
 /// <summary>
 /// Properties on <see cref="ProductTypeCachedInfo"/> object are updated by <see cref="ProductTypeItem"/> Saved event.
 /// </summary>
 internal void UpdatePropertiesOnSaved(ProductTypeItem productTypeItem)
 {
     LoadProperty(ProductTypeIdProperty, productTypeItem.ProductTypeId);
     LoadProperty(NameProperty, productTypeItem.Name);
 }