Ejemplo n.º 1
0
 private void dgvSong_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (this.dgvSong.SelectedRows[0].Cells[0].Value != null)
     {
         SelectSongURL();
         if (song_id != null)
         {
             Song song = new Song();
             song.SongURL  = song_url;
             song.SongName = dgvSong.SelectedRows[0].Cells[1].Value.ToString();
             PlayList playlist = new PlayList();
             playlist.AddSong(song);
             AddSongCount();
             ((FrmMain)this.Owner).PlayMP3();
         }
     }
 }
Ejemplo n.º 2
0
        private void listView1_Click(object sender, EventArgs e)
        {
            PlayList playlist = new PlayList();

            playlist.DeleteSong(Convert.ToInt32(this.lvsong.SelectedItems[0].Tag));

            if (view == 1)
            {
                ((FrmMain)this.Owner).DeleteSong();
            }
            else if (view == 2)
            {
                ((FrmMain)this.Owner.Owner).DeleteSong();
            }
            else if (view == 3)
            {
                ((FrmMain)this.Owner.Owner.Owner).DeleteSong();
            }
            AddSong();
        }