public TaskDownloadTitle(Title title, List <int> chaptersFormDownload, string pathToDownload) { Title = title; IndexNumbersForDownload = chaptersFormDownload; FolderToDownload = pathToDownload; Progress = new DownloadProgress(); }
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(); }