private void btnSavePlaylist_Click(object sender, RoutedEventArgs e)
        {
            string initialName;

            if (currentPlaylist != null)
            {
                initialName = currentPlaylist.Name;
            }
            else
            {
                initialName = "";
            }

            SavePlaylistDialog dlg = new SavePlaylistDialog(initialName);

            dlg.Owner = Window.GetWindow(this);
            dlg.ShowDialog();
            if (dlg.DialogResult == true)
            {
                List <Track> list = new List <Track>();
                foreach (Track t in lstPlaylist.Items)
                {
                    list.Add(t);
                }
                Playlist p = new Playlist(dlg.SelectedPlaylistName, list);
                p.SavePlaylist();
                currentPlaylist = p;
            }
        }
        private void btnSavePlaylist_Click(object sender, RoutedEventArgs e)
        {
            string initialName;
            if (currentPlaylist != null)
                initialName = currentPlaylist.Name;
            else
                initialName = "";

            SavePlaylistDialog dlg = new SavePlaylistDialog(initialName);
            dlg.Owner = Window.GetWindow(this);
            dlg.ShowDialog();
            if (dlg.DialogResult == true)
            {
                List<Track> list = new List<Track>();
                foreach (Track t in lstPlaylist.Items)
                {
                    list.Add(t);
                }
                Playlist p = new Playlist(dlg.SelectedPlaylistName, list);
                p.SavePlaylist();
                currentPlaylist = p;
            }
        }