Tätigkeiten überarbeitet.
This commit is contained in:
26
KanSan/IstFertigZuTextConverter.cs
Normal file
26
KanSan/IstFertigZuTextConverter.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user