Пример #1
0
 public static ImageGalleryInfo GetGallerySettingValues(int userModuleID, AspxCommonInfo aspxCommonObj)
 {
     try
     {
         ImageGalleryInfo infoObject = AspxImageGalleryProvider.GetGallerySettingValues(userModuleID, aspxCommonObj);
         return(infoObject);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Пример #2
0
        public static ImageGalleryInfo GetGallerySettingValues(int userModuleID, AspxCommonInfo aspxCommonObj)
        {
            List <KeyValuePair <string, object> > parameterCollection = new List <KeyValuePair <string, object> >();

            try
            {
                parameterCollection.Add(new KeyValuePair <string, object>("UserModuleID", userModuleID));
                parameterCollection.Add(new KeyValuePair <string, object>("PortalID", aspxCommonObj.PortalID));
                parameterCollection.Add(new KeyValuePair <string, object>("Culture", aspxCommonObj.CultureName));
                OracleHandler    sagesql    = new OracleHandler();
                ImageGalleryInfo infoObject = sagesql.ExecuteAsObject <ImageGalleryInfo>("usp_Aspx_GetGallerySettings]", parameterCollection);
                return(infoObject);
            }
            catch (Exception e)
            {
                throw e;
            }
        }
        public List<int> ReturnDimension(Int32 userModuleID, Int32 portalID, string culture)
        {
            List<int> param = new List<int>();
            ImageGalleryInfo info = new ImageGalleryInfo();
            ImageGallerySqlProvider settings = new ImageGallerySqlProvider();

            info = settings.GetGallerySettingValues(userModuleID, portalID, culture);
            param.Add(int.Parse(info.ImageWidth));
            param.Add(int.Parse(info.ImageHeight));
            param.Add(int.Parse(info.ThumbWidth));
            param.Add(int.Parse(info.ThumbHeight));
            //param.Add(int.Parse(info.ZoomShown));
            return param;
        }
        public List<int> ReturnDimension(Int32 userModuleID, AspxCommonInfo aspxCommonObj)
        {
            List<int> param = new List<int>();
            ImageGalleryInfo info = new ImageGalleryInfo();
            ImageGallerySqlProvider settings = new ImageGallerySqlProvider();

            info = AspxImageGalleryController.GetGallerySettingValues(userModuleID, aspxCommonObj);
            param.Add(int.Parse(info.ImageWidth));
            param.Add(int.Parse(info.ImageHeight));
            param.Add(int.Parse(info.ThumbWidth));
            param.Add(int.Parse(info.ThumbHeight));
            //param.Add(int.Parse(info.ZoomShown));
            return param;
        }
 public ImageGalleryInfo ReturnSettings(Int32 UserModuleID, Int32 PortalID, string culture)
 {
     ImageGalleryInfo gallerySettingsInfo = new ImageGalleryInfo();
     ImageGallerySqlProvider settings = new ImageGallerySqlProvider();
     gallerySettingsInfo = settings.GetGallerySettingValues(UserModuleID, PortalID, culture);
     return gallerySettingsInfo;
 }