Beispiel #1
0
        private void DisplayDuplicates(IList <ImageFile> images)
        {
            //Alert user that images were found, then print to the console

            //TODO adapt for lists > the buffer of the console, eg write to file, pagination.

            var imagesWithDuplicatesCount = images.Count();

            _consolePrinter.GetEntryFromUser(
                $"{imagesWithDuplicatesCount:##,###}" +
                " images have been found with duplicates, press enter to print them out to the console."
                );

            foreach (var imageFile in images)
            {
                if (imageFile.SimilarImages.Count > 0)
                {
                    _consolePrinter.PrintSimilarImagesDetails(imageFile);
                }
            }
        }