private async void BTN_Gather_Click(object sender, EventArgs e) // Loop through the sources list & call 'GetProxy' for each URL { count = 0; BTN_Gather.Enabled = false; TB_Proxies.Clear(); try { using (StreamReader sr = new StreamReader(TB_Sources.Text)) { string line; while ((line = sr.ReadLine()) != null) { await Task.Run(() => GetProxy(line)); sourceCount--; LABEL_NumberOfSources.Text = sourceCount.ToString(); } } } catch (Exception) { TB_Sources.Text = "NO SOURCES SELECTED"; } }