Beispiel #1
0
        public WordMap(IDictionary <FrameMeaning, string> items)
        {
            Items = new Dictionary <FrameMeaning, string>();

            foreach (var item in items)
            {
                if (item.Key == FrameMeaning.TrackNumber)
                {
                    Items[item.Key] = Id3FileUtils.FixName(TrackNumberGenerator.NumberOfTrack(item.Value));
                }
                else
                {
                    Items[item.Key] = Id3FileUtils.FixName(item.Value);
                }
            }
        }
Beispiel #2
0
        public string Name(IDictionary <FrameMeaning, string> words)
        {
            WordMap wordMap = new WordMap(words);

            return(Id3FileUtils.RemoveTrailingPeriods(Pattern.ToString(wordMap.Items)));
        }