public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (!(value is DateTime))
            {
                return(string.Empty);
            }
            var date = (DateTime)value;

            if (date == DateTime.MinValue)
            {
                return("N/A");
            }
            return(date.ToString(EnumDescriptionConverter.GetDescription(Config.Instance.LastPlayedDateFormat), culture));
        }
Exemple #2
0
 public void SetConfigWarning(ConfigWarning warning)
 {
     _warning    = warning;
     WarningText = EnumDescriptionConverter.GetDescription(warning);
 }