You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
656 B
23 lines
656 B
using System.Globalization;
|
|
|
|
namespace AMC.View.Converters
|
|
{
|
|
public class CopyrightInfoConverter : IValueConverter
|
|
{
|
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
|
{
|
|
var (copyrightYear, producerBlurb) = (ValueTuple<int, string>)value;
|
|
return string.Format(
|
|
"℗ {0} {1}",
|
|
copyrightYear,
|
|
producerBlurb
|
|
);
|
|
}
|
|
|
|
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
}
|