Пример #1
0
 private void Download_Progress(int epid, int percent, Provider.ProgressType type)
 {
     if (this.DownloadProgress != null && this.DownloadIsVisible(epid))
     {
         this.DownloadProgress(epid, percent, type);
     }
 }
Пример #2
0
        private static void DownloadHandler_Progress(int epid, int percent, Provider.ProgressType type)
        {
            if (Progress != null)
            {
                Progress(epid, percent, type);
            }

            UpdateTotalProgress();
        }
        private void DownloadPluginInst_Progress(int percent, Provider.ProgressType type)
        {
            // Don't raise the progress event if the value is the same as last time
            if (percent == this.ProgressValue)
            {
                return;
            }

            if (percent < 0 || percent > 100)
            {
                throw new ArgumentOutOfRangeException("percent", percent, "Progress percentage must be between 0 and 100!");
            }

            this.ProgressValue = percent;
            this.Progress?.Invoke(this.episodeInfo.Epid, percent, type);
        }
 private static void DownloadHandler_Progress(int epid, int percent, Provider.ProgressType type)
 {
     Progress?.Invoke(epid, percent, type);
     UpdateTotalProgress();
 }