Files
Kansan/KanSan/IstFertigZuTextConverter.cs
2020-06-06 18:46:44 +02:00

27 lines
779 B
C#

using Syncfusion.Windows.Shared;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using System.Windows.Data;
namespace KanSan
{
class IstFertigZuTextConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
DateTime dateTime = (DateTime)value;
if (dateTime != null && dateTime != DateTime.MinValue)
return string.Format("(Erledigt am {0})",dateTime.ToShortDateString());
return "";
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}