private void listBox1_Click(object sender, MouseEventArgs e) { int index = this.listBox1.IndexFromPoint(e.Location); if (index != System.Windows.Forms.ListBox.NoMatches) { string episode = listBox1.SelectedItem.ToString(); this.episode = episode; var list = Episodes.Description(xml, episode); podcast.Podcastlink(episode); CheckIfPlayed(episode); textBox1.Text = list; if (File.Exists(@"..\Mp3\" + a + @"\" + episode + ".mp3")) { button1.Text = "Play Episode"; } else { button1.Text = "Download Episode"; } } }