annotate MetroWpf/Stocks.UI/Converters/DateTimeToTimeConverter.cs @ 90:d523381be45a

nuge restore added
author stevenhollidge <stevenhollidge@hotmail.com>
date Mon, 30 Apr 2012 10:48:49 +0100
parents 6109bc268b90
children
rev   line source
20
adminsh@apollo
parents:
diff changeset
1 using System;
adminsh@apollo
parents:
diff changeset
2 using System.Windows.Data;
adminsh@apollo
parents:
diff changeset
3
adminsh@apollo
parents:
diff changeset
4 namespace Stocks.UI.Converters
adminsh@apollo
parents:
diff changeset
5 {
adminsh@apollo
parents:
diff changeset
6 public class DateTimeToTimeConverter : IValueConverter
adminsh@apollo
parents:
diff changeset
7 {
adminsh@apollo
parents:
diff changeset
8 #region IValueConverter Members
adminsh@apollo
parents:
diff changeset
9
adminsh@apollo
parents:
diff changeset
10 public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
adminsh@apollo
parents:
diff changeset
11 {
adminsh@apollo
parents:
diff changeset
12 string dateTimeString = ((DateTime) value).ToString("HH:mm:ss.ffff");
adminsh@apollo
parents:
diff changeset
13
adminsh@apollo
parents:
diff changeset
14 return dateTimeString;
adminsh@apollo
parents:
diff changeset
15 }
adminsh@apollo
parents:
diff changeset
16
adminsh@apollo
parents:
diff changeset
17 public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
adminsh@apollo
parents:
diff changeset
18 {
adminsh@apollo
parents:
diff changeset
19 throw new NotImplementedException();
adminsh@apollo
parents:
diff changeset
20 }
adminsh@apollo
parents:
diff changeset
21
adminsh@apollo
parents:
diff changeset
22 #endregion
adminsh@apollo
parents:
diff changeset
23 }
adminsh@apollo
parents:
diff changeset
24 }