PeerCastStation.GUI.MainForm.ChannelInfoContainer.ChannelInfoContainer C# (CSharp) Method

ChannelInfoContainer() public method

public ChannelInfoContainer ( ChannelInfo info, ChannelTrack track ) : System
info PeerCastStation.Core.ChannelInfo
track PeerCastStation.Core.ChannelTrack
return System
      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 = "";
        }
      }
    }
MainForm.ChannelInfoContainer