//checkbox BTS/UKE żeby deaktywować przycisk private void DownloadData_CheckBox_Click(object sender, EventArgs e) { if (DownloadData_CheckBox.GetItemChecked(0) || DownloadData_CheckBox.GetItemChecked(1)) { DownloadData_Button.Enabled = true; } else { DownloadData_Button.Enabled = false; } }
//fja uruchamiająca async pobieranie danych bts/uke protected void DlData_Fn(string dir) { if (DownloadData_CheckBox.GetItemChecked(0)) { string btspath = WebFeatures.DLb(dir); MessageBox.Show("Downloaded btsearch..."); } if (DownloadData_CheckBox.GetItemChecked(1)) { diru = dir + @"DL_UKE\"; Directory.CreateDirectory(diru); List <string> links = WebFeatures.GetUKE(); foreach (string link in links) { WebFeatures.DLu(diru, link); Thread.Sleep(25); } MessageBox.Show("Downloaded UKE..."); } }