using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
//
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.IO;
using System.Threading;
namespace Updater_WF_HACK
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            Thread.Sleep(100);
            progressBar1.Value = 50;
            Thread.Sleep(100);
            progressBar1.Value = 80;
            Thread.Sleep(20);
            progressBar1.Value = 100;
            string link = @"
"; //ссылка в ковычках!!!
            WebClient webClient = new WebClient();
            webClient.DownloadFileAsync(new Uri(link), "SuperHACK.exe"); //название и можно путь провести, если папки не существует то ее надо создать заранее
            MessageBox.Show("Файл скачен в папку с апдейтором", "Готово!");
            progressBar1.Value = 0;
        }
        private void label1_Click(object sender, EventArgs e)
        {
        }
    }
}