//------------------------------------------ #endregion #region ---------------IPhotoable-------------- public string GetPhotoPath(PhotoTypes photo) { if (((string)_PhotoExtension).Length > 0) { string photoName = ItemsFactory.CreateItemsPhotoName(_ItemID); string photoPath = DCSiteUrls.GetPath_ItemsPhotoNormalThumbs(OwnerName, ModuleTypeID, CategoryID, ItemID) + photoName; switch (photo) { case PhotoTypes.Original: photoPath = DCSiteUrls.GetPath_ItemsPhotoOriginals(OwnerName, ModuleTypeID, CategoryID, ItemID) + Photo; break; case PhotoTypes.Thumb: photoPath = DCSiteUrls.GetPath_ItemsPhotoNormalThumbs(OwnerName, ModuleTypeID, CategoryID, ItemID) + photoName + MoversFW.Thumbs.thumbnailExetnsion; break; case PhotoTypes.Big: photoPath = DCSiteUrls.GetPath_ItemsPhotoBigThumbs(OwnerName, ModuleTypeID, CategoryID, ItemID) + photoName + MoversFW.Thumbs.thumbnailExetnsion; break; default: photoPath = DCSiteUrls.GetPath_ItemsPhotoNormalThumbs(OwnerName, ModuleTypeID, CategoryID, ItemID) + photoName + MoversFW.Thumbs.thumbnailExetnsion; break; } return(photoPath); } else { return(SiteDesign.NoPhotoPath); } }
public string GetPhotoPath(PhotoTypes photo) { if (_FileExtension.Length > 0) { string photoName = GetPhotoName(photo); string path = DCSiteUrls.GetPath_ItemsFiles(OwnerName, ModuleTypeID, CategoryID, ItemID) + photoName; string realPath = string.Format(path, ItemID.ToString()); return(realPath); } else { return(SiteDesign.NoPhotoPath); } }
public static string GetPhotoPath(PhotoTypes photo, object _PhotoID, object _photoExtension, object ownerName, object ModuleTypeID, object CategoryID, object ItemID) { if (((string)_photoExtension).Length > 0) { string photoName = Photos.GetPhotoName((string)_photoExtension, photo, FileIdentifre, (int)_PhotoID); string path = DCSiteUrls.GetPath_ItemsFiles((string)ownerName, (int)ModuleTypeID, (int)CategoryID, (int)ItemID) + photoName; string realPath = string.Format(path, _PhotoID.ToString()); return(realPath); } else { return(SiteDesign.NoPhotoPath); } }
//-------------------------------------------------------- public static string GetPhotoName(string photoExtension, PhotoTypes photos, string photoIdentifre, int id) { if (photoExtension.Length > 0) { switch (photos) { case PhotoTypes.Original: return(photoIdentifre + id + photoExtension); case PhotoTypes.Thumb: return(photoIdentifre + id + "-thumb" + Photos.ThumbExetnsion); case PhotoTypes.Big: return(photoIdentifre + id + "-Big" + Photos.ThumbExetnsion); default: return(""); } } else { return(""); } }
public string GetPhotoName(PhotoTypes photo) { return(Photos.GetPhotoName(_FileExtension, photo, FileIdentifre, _FileID)); }