private void SetFramePlaylistAndCloseWin()
 {
     frmPlayList     = new FrmPlayList(mediaPlayer, lbPlayLists.SelectedIndex);
     frmMain.Content = frmPlayList;
     currentPlaylist = frmPlayList.GetPlaylist();
     Close();
 }
Exemplo n.º 2
0
        private void BtnPlayList_Click(object sender, RoutedEventArgs e)
        {
            OpenPlaylistWindow openPlaylistWindow = new OpenPlaylistWindow(mediaPlayer, frmMain);

            openPlaylistWindow.ShowDialog();

            if (openPlaylistWindow.GetCurrentFramePlaylist() != null)
            {
                frmPlayList     = openPlaylistWindow.GetCurrentFramePlaylist();
                currentPlaylist = frmPlayList.GetPlaylist();
            }

            HideGridBtn();
        }