private static btnDownload() { string url = string.Empty; if(radiobtn1.Checked) url = "http://site/" // ссылка на первый файл else url = "http://site2/" // ссылка на второй файл Downloads(url); // метод для скачки и сейвай файла }
if (radioButton1.Checked) { //Download(file1); } else if (radioButton2.Checked) { //Download(file2); }