Ejemplo n.º 1
0
        public List <IconFile> ReadIcons(string pathLibary, Size size)
        {
            var icons = IconHelper.ExtractAllIcons(pathLibary);

            var iconFiles = new List <IconFile>();

            foreach (var icon in icons)
            {
                var iconFile = new IconFile
                {
                    Icon  = IconHelper.GetBestFitIcon(icon, size, false),
                    Index = iconFiles.Count
                };
                iconFiles.Add(iconFile);
            }

            return(iconFiles);
        }
Ejemplo n.º 2
0
        public List <IconFile> ReadIcons(string pathLibary)
        {
            var icons = IconHelper.ExtractAllIcons(pathLibary);

            var iconFiles = new List <IconFile>();

            foreach (var icon in icons)
            {
                var iconFile = new IconFile
                {
                    Icon  = icon,
                    Index = iconFiles.Count
                };
                iconFiles.Add(iconFile);
            }

            return(iconFiles);
        }