Beispiel #1
0
        public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
        {
            if (values == null)
            {
                return(null);
            }
            if (_sttConverter == null)
            {
                _sttConverter = GetSongDb(values);
            }

            var song     = values[0] as Song;
            var category = values[1] as Category;

            return(_sttConverter.Convert(song, typeof(string), category, culture));
        }
Beispiel #2
0
 public SongToTagsMultiConverter(SongDb songDb)
 {
     _sttConverter = new SongToTagsConverter(songDb);
 }