示例#1
0
        protected override IntelligentString GetDescription(IntelligentString seperator)
        {
            IntelligentString description = IntelligentString.Empty;

            if (!IntelligentString.IsNullOrEmpty(Genre))
            {
                description += Genre.Trim() + seperator;
            }

            if (!IntelligentString.IsNullOrEmpty(Program))
            {
                description += Program.Trim() + seperator;
            }

            if (Series != 0)
            {
                description += "Series " + Series.ToString() + seperator;
            }

            if (!IntelligentString.IsNullOrEmpty(EpisodeOfString))
            {
                description += "Episode " + EpisodeOfString + seperator;
            }

            if (description.EndsWith(seperator))
            {
                description = description.Substring(0, description.Length - seperator.Length);
            }

            return(description.Trim());
        }
示例#2
0
        protected override IntelligentString GetDescription(IntelligentString seperator)
        {
            IntelligentString description = IntelligentString.Empty;

            if (!IntelligentString.IsNullOrEmpty(Genre))
            {
                description += Genre.Trim() + seperator;
            }

            if (!IntelligentString.IsNullOrEmpty(Artist))
            {
                description += Artist.Trim() + seperator;
            }

            if (!IntelligentString.IsNullOrEmpty(Album))
            {
                description += Album.Trim() + seperator;
            }

            if (!IntelligentString.IsNullOrEmpty(DiskNumberOfString))
            {
                description += "Disk " + DiskNumberOfString + seperator;
            }

            if (!IntelligentString.IsNullOrEmpty(TrackNumberOfString))
            {
                description += "Track " + TrackNumberOfString + seperator;
            }

            if (description.EndsWith(seperator))
            {
                description = description.Substring(0, description.Length - seperator.Length);
            }

            return(description.Trim());
        }