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