public DownloadPack Dequeue() { PhaseCompleted(PackIndex); ++PackIndex; curPack = Packs.Dequeue(); return(curPack); }
internal static double GetPhaseValue(int ind = -1) { DownloadPack dl = ind == -1 ? instance.Packs.ElementAt(ind) : curPack; return((double)dl.TotalBytes / DownloadPack.TotalPackSize); }
public void AddDownload(DownloadPack dl) { Packs.Enqueue(dl); }