public void addCompletedCount(string trackedGroupName) { GroupTracker trackedGroup = trackedGroups[trackedGroupName]; trackedGroup.completedCount++; trackedGroup.remainingDownloadCount = trackedGroup.totalDownloadCount - trackedGroup.completedCount; }
public void CheckIsCompletedAllDownloads(string trackedGroupName) { GroupTracker trackedGroup = trackedGroups[trackedGroupName]; trackedGroup.remainingDownloadCount = trackedGroup.totalDownloadCount - trackedGroup.completedCount; if (trackedGroup.remainingDownloadCount == 0) { RemoveLoadingPanel(); if (trackedGroup.isReadyToComplete) { CompletedAllDownloadsEventCall(trackedGroupName); trackedGroups.Remove(trackedGroupName); } } }