Esempio n. 1
0
        private void btnDownload_Click(object sender, EventArgs e)
        {
            List <String> links = new List <String>();

            foreach (ListViewItem item in lvSongs.Items)
            {
                if (item.Checked)
                {
                    links.Add(item.SubItems[2].Text);
                }
            }

            if (links.Count > 0)
            {
                DownloadForm form = new DownloadForm();
                form.SetDirectLinks(links);
                form.ShowDialog();
                form.Dispose();
            }
            else
            {
                MessageBox.Show("Please selecte any songs!", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }