Пример #1
0
        public int GetMinWidth(ImageType type)
        {
            ImageOption option = null;

            foreach (ImageOption i in ImageOptions)
            {
                if (i.Type == type)
                {
                    option = i;
                    break;
                }
            }

            return(option == null ? 0 : option.MinWidth);
        }
Пример #2
0
        public int GetLimit(ImageType type)
        {
            ImageOption option = null;

            foreach (ImageOption i in ImageOptions)
            {
                if (i.Type == type)
                {
                    option = i;
                    break;
                }
            }

            return(option == null ? 1 : option.Limit);
        }