private void Button_AddToQueue_Click(object sender, RoutedEventArgs e) { textBlock_Message.Text = ""; var trackAux = (Track)datagrid_TrackPlaylist.SelectedItem; if (trackAux != null) { StreamingPlayer.AddTrackToQueue(trackAux); textBlock_Message.Text = "*Track added to Queue"; } else { textBlock_Message.Text = "*Select a track"; } }
private void Button_AddToQueue_Click(object sender, RoutedEventArgs e) { textBlock_Message.Text = ""; var trackAux = (LocalTrack)datagrid_MyOwnTracks.SelectedItem; if (trackAux != null) { Track localTrack = new Track(); localTrack.Title = trackAux.Title; localTrack.StoragePath = trackAux.FileName; localTrack.DurationSeconds = 200; StreamingPlayer.AddTrackToQueue(localTrack); textBlock_Message.Text = "*Track added to Queue"; } else { textBlock_Message.Text = "*Select a track"; } }