/// <summary>
        /// Processes the button click event when saving one playlist.
        /// </summary>
        private void playlistButton_Click(object sender, RoutedEventArgs e)
        {
            Button b = new Button();

            b = (Button)sender;
            string playlistQueue = ((PlaylistData)b.DataContext).PlaylistSQ;
            string playlistName  = ((PlaylistData)b.DataContext).PlaylistName;

            string fileName = "sp_" + playlistName + ".xml";
            string content  = UPnP.QueryDevice.GetPlaylist(playlistQueue, UPnP.QueryDevice.PlaylistAction.Save, 0);

            playlist_stream = new MemoryStream();
            StreamWriter sw = new StreamWriter(playlist_stream);

            sw.Write(content);
            sw.Flush();
            playlist_stream.Position = 0;


            DataWindow dw = new DataWindow();

            dw.stream = playlist_stream;
            dw.ShowDialog();


//            ExportPlaylist(fileName, content, "xml" /* type */);
        }
        private void btnShowData_Click(object sender, RoutedEventArgs e)
        {
            DataWindow dw = new DataWindow();

            dw.Show();
        }