예제 #1
0
		private static string GetPictureFilename(ExportType export, PreviewImageType previewImage) {
			if (previewImage != null) {
				foreach (object o in export.Content.Items) {
					if (o is AssetType) {
						AssetType asset = o as AssetType;
						if (string.Equals(asset.Guid, previewImage.GuidRef)) return asset.AssetFilename;
					}
				}
			}
			return null;
		}
예제 #2
0
 private static string GetPictureFilename(ExportType export, PreviewImageType previewImage)
 {
     if (previewImage != null)
     {
         foreach (object o in export.Content.Items)
         {
             if (o is AssetType)
             {
                 AssetType asset = o as AssetType;
                 if (string.Equals(asset.Id, previewImage.IdRef))
                 {
                     return(asset.OriginalSource);                                             //---articy converts filename, so use  original. Was: asset.AssetFilename;
                 }
             }
         }
     }
     return(null);
 }