comparison MetroWpf/FxRates.UI/Converters/DateTimeToTimeConverter.cs @ 24:a8b50a087544

Stocks and FxRates working, new menu introduced. Working nicely so far
author adminsh@apollo
date Tue, 20 Mar 2012 20:18:35 +0000
parents
children
comparison
equal deleted inserted replaced
23:399398841fd0 24:a8b50a087544
1 using System;
2 using System.Windows.Data;
3
4 namespace FxRates.UI.Converters
5 {
6 public class DateTimeToTimeConverter : IValueConverter
7 {
8 #region IValueConverter Members
9
10 public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
11 {
12 string dateTimeString = ((DateTime) value).ToString("HH:mm:ss.ffff");
13
14 return dateTimeString;
15 }
16
17 public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
18 {
19 throw new NotImplementedException();
20 }
21
22 #endregion
23 }
24 }