Jelajahi Sumber

Poprawiony defSorter - sprawdź czy teraz łapie wszystko.

Michał W. Urbańczyk 18 tahun lalu
induk
melakukan
21112b0023
2 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. TEMPAT SAMPAH
      DefSorter.exe
  2. 2 2
      defSorter/Form1.cs

TEMPAT SAMPAH
DefSorter.exe


+ 2 - 2
defSorter/Form1.cs

@@ -20,7 +20,7 @@ namespace DefSorter
             string[] pliczki = Directory.GetFiles(Directory.GetCurrentDirectory());
             foreach (string ss in pliczki)
             {
-                if (!(ss.EndsWith(".DEF")))
+                if ((!(ss.EndsWith(".DEF")))&&(!(ss.EndsWith(".def"))))
                     continue;
                 else ile++;
             }
@@ -40,7 +40,7 @@ namespace DefSorter
             progressBar1.Maximum = Convert.ToInt32(label2.Text);
             foreach (string ss in pliczki)
             {
-                if (!(ss.EndsWith(".DEF")))
+                if ((!(ss.EndsWith(".DEF"))) && (!(ss.EndsWith(".def"))))
                     continue;
                 FileStream czytacz = File.OpenRead(ss);
                 int coTo = czytacz.ReadByte();