public ChannelInfoContainer(ChannelInfo info, ChannelTrack track)
{
if (info!=null) {
InfoChannelName = info.Name;
InfoGenre = info.Genre;
InfoDesc = info.Desc;
InfoContactURL = info.URL;
InfoComment = info.Comment;
InfoContentType = info.ContentType;
InfoBitrate = String.Format("{0} kbps", info.Bitrate);
}
else {
InfoChannelName = "";
InfoGenre = "";
InfoDesc = "";
InfoContactURL = "";
InfoComment = "";
InfoContentType = "";
InfoBitrate = "";
}
if (track!=null) {
TrackAlbum = track.Album;
TrackArtist = track.Creator;
TrackTitle = track.Name;
TrackGenre = track.Genre;
TrackContactURL = track.URL;
}
else {
TrackAlbum = "";
TrackArtist = "";
TrackTitle = "";
TrackGenre = "";
TrackContactURL = "";
}
}
}