source: trunk/CrypPlugins/P2PEditor/Converters/DateTimeConverter.cs @ 1701

Last change on this file since 1701 was 1701, checked in by Paul Lelgemann, 12 years ago

o P2PEditor fixes

File size: 609 bytes
Line 
1using System;
2using System.Globalization;
3using System.Threading;
4using System.Windows.Data;
5
6namespace Cryptool.P2PEditor.Converters
7{
8    public class DateTimeConverter : IValueConverter
9    {
10        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
11        {
12            return ((DateTime)value).ToString("g", Thread.CurrentThread.CurrentCulture);
13        }
14
15        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
16        {
17            throw new NotImplementedException();
18        }
19    }
20}
Note: See TracBrowser for help on using the repository browser.