コード例 #1
0
 /// <summary>
 /// Step 3
 /// When the Client Opens the InformationObject in Detailsview it requests the Detailslink to be loaded.
 /// Though you can collect many different types of Details you have to identify them by there DetailsLinkName, which are best stored in Constants
 /// </summary>
 /// <param name="process"></param>
 /// <param name="dataInterface"></param>
 public void CollectDetails(DetailsProcess process, IDetailsDataInterface dataInterface)
 {
     if (dataInterface.IsIdDetailsLink(Constants.ProductPhotoDetailslink))
     {
         var productsLoader = new ProductsLoader();
         var productid      = dataInterface.GetLinkId();
         var items          = productsLoader.GetProductPhoto(productid);
         var item           = items.FirstOrDefault();
         dataInterface.Set(item);
     }
 }
 /// <summary>
 /// Step 3 
 /// When the Client Opens the InformationObject in Detailsview it requests the Detailslink to be loaded.
 /// Though you can collect many different types of Details you have to identify them by there DetailsLinkName, which are best stored in Constants
 /// </summary>
 /// <param name="process"></param>
 /// <param name="dataInterface"></param>
 public void CollectDetails(DetailsProcess process, IDetailsDataInterface dataInterface)
 {
     if (dataInterface.IsIdDetailsLink(Constants.ProductPhotoDetailslink))
     {
         var productsLoader = new ProductsLoader();
         var productid = dataInterface.GetLinkId();
         var items = productsLoader.GetProductPhoto(productid);
         var item = items.FirstOrDefault();
         dataInterface.Set(item);
     }
 }