Ejemplo n.º 1
0
 static void ShowDuplicates()
 {
     Console.WriteLine("Finding duplicates in " + duplicateImagesFolder.FullName);
     foreach (var list in ImageTool.GetDuplicateImages(duplicateImagesFolder.FullName, true))
     {
         Console.WriteLine(list.Count + " duplicates:");
         foreach (var item in list)
         {
             Console.WriteLine(" - " + Path.GetFileName(item));
         }
     }
 }
Ejemplo n.º 2
0
        private void AnalyzeAll()
        {
            var tsk =
                Task.Factory.StartNew(() =>
            {
                try
                {
                    listIdentical = ImageTool.GetDuplicateImages(files, cvm);
                }

                catch (Exception e)
                {
                    MessageBox.Show($"Problem doing analysis {e.Message}", "Problem", MessageBoxButton.OK, MessageBoxImage.Exclamation);
                }
                finally
                {
                    analysis_complete = true;
                }
                cvm.Status = "Ready.";
                return;
            });
        }