Пример #1
0
        public List <string> GetImagePaths()
        {
            var result = new List <string>();

            foreach (var wallpaper in collection)
            {
                var path = ImageFileHelper.GetFilePath(wallpaper);
                result.Add(path);
            }
            return(result);
        }
Пример #2
0
        private void PaintWallpaper()
        {
            if (collection.Count <= 0)
            {
                return;
            }
            var wallpaper = collection.Next;

            wallpaperSetter.Path = ImageFileHelper.GetFilePath(wallpaper);
            if (wallpaperSetter.Path != null && File.Exists(wallpaperSetter.Path))
            {
                wallpaperSetter.Paint();
            }
        }