Exemple #1
0
 private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (DGVPlaylist.Columns[e.ColumnIndex].Name == "View")
     {
         var pView = new PlaylistTrackControl()
         {
             Dock = DockStyle.Fill
         };
         splitContainer1.Panel2.Controls.Add(pView);
         pView.BringToFront();
     }
 }
Exemple #2
0
        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (DGVPlaylist.Columns[e.ColumnIndex].Name == "View")
            {
                if (_selectedPlaylist != null)
                {
                    var playlistTrackControl = new PlaylistTrackControl(_selectedPlaylist, Db);

                    playlistTrackControl.Dock = DockStyle.Fill;
                    splitContainer1.Panel2.Controls.Add(playlistTrackControl);
                    playlistTrackControl.BringToFront();
                }
            }
        }