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