/// <summary>
        /// Downloads the specified pool to the specified folder.
        /// </summary>
        /// <param name="poolID">The ID of the pool to download.</param>
        /// <param name="downloadPath">The folder to download the pool to.</param>
        protected void DownloadPool(string poolID, string downloadPath)
        {
            token              = new DownloadDataToken();
            token.PoolID       = poolID;
            token.DownloadPath = downloadPath;
            token.FilenameMask = textBoxFilenameMask.Text;

            gridControls.IsEnabled            = false;
            progressBarStatus.IsIndeterminate = false;
            labelStatus.Text = token.OperationText = "Downloading pool data";

            client.QueryString.Clear();
            client.QueryString.Add("id", poolID);
            SetHeaders(client.Headers);

            client.DownloadStringAsync(new Uri(PoolAPIURL), token);
        }
 public DownloaderThreadToken(DownloadDataToken token)
 {
     DownloadDataToken = token;
     ImageLinks        = new List <e621ImageData> ();
 }