public Form1() { InitializeComponent(); MouseDown += Drag_Override; customImageButton1.Click += customImageButton1_Click; customImageButton2.Click += customImageButton2_Click; customImageButton1.Hide(); client_ = new WebClient(); client_.DownloadProgressChanged += client_DownloadProgressChanged; client_.DownloadFileCompleted += client_DownloadFileCompleted; settings_ = new Settings(); download_queue_ = new DownloadQueue(client_); download_curr_ = 1; download_max_ = 0; // transparency for background image BackColor = Color.Red; TransparencyKey = Color.Red; // background worker for async process backgroundWorker1.WorkerReportsProgress = true; backgroundWorker1.WorkerSupportsCancellation = true; backgroundWorker1.ProgressChanged += backgroundWorker1_ProgressChanged; backgroundWorker1.RunWorkerCompleted += backgroundWorker1_RunWorkerCompleted; }
public Form1() { InitializeComponent(); MouseDown += Drag_Override; customImageButton1.Click += customImageButton1_Click; customImageButton2.Click += customImageButton2_Click; customImageButton1.Hide(); client_ = new WebClient(); client_.DownloadProgressChanged += client_DownloadProgressChanged; client_.DownloadFileCompleted += client_DownloadFileCompleted; settings_ = new Settings(); download_queue_ = new DownloadQueue(client_); download_curr_ = 1; download_max_ = 0; // transparency for background image BackColor = Color.Red; TransparencyKey = Color.Red; // background worker for async process backgroundWorker1.WorkerReportsProgress = true; backgroundWorker1.WorkerSupportsCancellation = true; backgroundWorker1.ProgressChanged += backgroundWorker1_ProgressChanged; backgroundWorker1.RunWorkerCompleted += backgroundWorker1_RunWorkerCompleted; }