private void backgroundWorker_DoWork(object sender, System.ComponentModel.DoWorkEventArgs e)
        {
            SimpleObjectImg result = (SimpleObjectImg)e.Argument;

            string newPath = $"{Path}\\{textBoxName.Text}";

            var wc = new WebClient();

            for (int i = 1; i <= result.number; i++)
            {
                string PathImg = String.Format("{0}\\{1:d2}.jpg", newPath, i);
                backgroundWorker1.ReportProgress(i);
                try
                {
                    wc.DownloadFile($"{result.LinkImg}{i}.jpg", PathImg);
                }
                catch (Exception)
                {
                    try
                    {
                        wc.DownloadFile($"{result.LinkImg}{i}.png", PathImg);
                    }
                    catch (Exception ex)
                    {
                        MessageBox.Show(ex.Message);
                    }
                }
            }
        }
        private void Parser_OnNewData(object arg1, SimpleObjectImg result)
        {
            string newPath = $"{Path}\\{textBoxName.Text}";

            try
            {
                Directory.CreateDirectory(newPath);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                return;
            }

            downloading = true;
            progressDownload.Maximum = result.number;
            buttonDownload.Enabled   = false;

            backgroundWorker1.RunWorkerAsync(result);
        }