Exemple #1
0
 public DownloadPack Dequeue()
 {
     PhaseCompleted(PackIndex);
     ++PackIndex;
     curPack = Packs.Dequeue();
     return(curPack);
 }
Exemple #2
0
        internal static double GetPhaseValue(int ind = -1)
        {
            DownloadPack dl = ind == -1 ? instance.Packs.ElementAt(ind) : curPack;

            return((double)dl.TotalBytes / DownloadPack.TotalPackSize);
        }
Exemple #3
0
 public void AddDownload(DownloadPack dl)
 {
     Packs.Enqueue(dl);
 }