Exemplo n.º 1
0
 private void IdHTTPWork(object ASender, Indy.Sockets.TWorkMode AWorkMode, long AWorkCount)
 {
     pbFile.Value = (int)Math.Round(AWorkCount / (curFileSize / 100.0));
 }
Exemplo n.º 2
0
 private void IdHTTPWorkBegin(object ASender, Indy.Sockets.TWorkMode AWorkMode, long AWorkCountMax)
 {
     curFileSize  = (int)AWorkCountMax;
     pbFile.Value = 0;
     DataStream.SetLength(0);
 }