Exemplo n.º 1
0
 public static void SendPacket(int nFile, SendProg Prog)
 {
     for (int i = 0; i < nFile; i++)
     {
         Prog(i);
         System.Threading.Thread.Sleep(500);
     }
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 public static void SendPacket(SendProg Prog)
 {
     Prog(num);
     num++;
     System.Threading.Thread.Sleep(500);
 }