Esempio n. 1
0
        private static void CreateHorizontalSlides(string resource, bool haveScores)
        {
            var horizontals = photos.Values.Where(p => p.horizontal).OrderByDescending(p => p.tags.Count).Select(p => p).ToList();

            while (horizontals.Count >= 1)
            {
                var p = horizontals.First();
                horizontals.Remove(p);
                Slide slide = slideShow.AddPhoto(p);
                Console.Write(string.Format("Preparing horizontal slides - remaining {0}\t\t\t\r", horizontals.Count));
            }
        }