コード例 #1
0
 public TaskDownloadTitle(Title title, List <int> chaptersFormDownload, string pathToDownload)
 {
     Title = title;
     IndexNumbersForDownload = chaptersFormDownload;
     FolderToDownload        = pathToDownload;
     Progress = new DownloadProgress();
 }
コード例 #2
0
        public TaskDownloadTitle(Title title, string template, string pathToDownload)
        {
            cancellationTokenSource = new CancellationTokenSource();
            cancellationToken       = cancellationTokenSource.Token;

            IndexNumber             = numberOfTitles++;
            Title                   = title;
            IndexNumbersForDownload = ParseTemplate(template);
            FolderToDownload        = pathToDownload;
            Progress                = new DownloadProgress();
        }