Esempio n. 1
0
 //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;
     }
 }
Esempio n. 2
0
 //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...");
     }
 }