Esempio n. 1
0
        //------------------------------------------
        #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);
            }
        }
Esempio n. 2
0
 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);
     }
 }
Esempio n. 3
0
        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);
            }
        }
Esempio n. 4
0
        //--------------------------------------------------------


        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("");
            }
        }
Esempio n. 5
0
 public string GetPhotoName(PhotoTypes photo)
 {
     return(Photos.GetPhotoName(_FileExtension, photo, FileIdentifre, _FileID));
 }