27 lines
779 B
C#
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();
|
|
}
|
|
}
|
|
}
|