public static void Compress(int nFile, CompProg Prog) { for (int i = 0; i < nFile; i++) { Prog(i); System.Threading.Thread.Sleep(500); } }
public static bool Compress(int nFiles, CompProg Prog) { for (int i = 0; i < nFiles; i++) { if (Prog(i) == false) { return false; } System.Threading.Thread.Sleep(500); } return true; }
public static bool Compress(int nFile, CompProg Prog) { for (int i = 0; i < nFile; i++) { if (Prog(i) == false) { return(false); } System.Threading.Thread.Sleep(500); } return(true); }