Exemplo n.º 1
0
        private void deleteaudiobtn_Click(object sender, EventArgs e)
        {
            Dictionary <string, string> audios = new Dictionary <string, string>();

            string[] filenames = new string[audiolistview.SelectedItems.Count];
            for (int i = 0; i < audiolistview.SelectedItems.Count; i++)
            {
                audios.Add(audiolistview.SelectedItems[i].ImageKey, audiolistview.SelectedItems[i].Text);
            }
            if (audios.Count > 0)
            {
                delete frm = new delete(audios);
                frm.ShowDialog();
            }
            else
            {
                MessageBox.Show("Please select some audios to delete");
            }

            //refresh the audio view list box
            audioloadingindicator.Visible = true;
            audioloadingindicator.Active  = true;
            showaudios(user.currentplaylistid);
            audioloadingindicator.Active  = false;
            audioloadingindicator.Visible = false;
            //end refresh
        }
Exemplo n.º 2
0
        private void deleteaudiobtn_Click(object sender, EventArgs e)
        {
            Dictionary<string, string> audios = new Dictionary<string, string>();
            string[] filenames = new string[audiolistview.SelectedItems.Count];
            for (int i=0;i<audiolistview.SelectedItems.Count;i++)
            {
                audios.Add(audiolistview.SelectedItems[i].ImageKey, audiolistview.SelectedItems[i].Text);
            }
            if (audios.Count > 0)
            {
                delete frm = new delete(audios);
                frm.ShowDialog();
            }
            else MessageBox.Show("Please select some audios to delete");

            //refresh the audio view list box
            audioloadingindicator.Visible = true;
            audioloadingindicator.Active = true;
            showaudios(user.currentplaylistid);
            audioloadingindicator.Active = false;
            audioloadingindicator.Visible = false;
            //end refresh
        }