| 1 | using Core.Librarys; |
| 2 | using System; |
| 3 | using System.Collections.Generic; |
| 4 | using System.Globalization; |
| 5 | using System.Linq; |
| 6 | using System.Text; |
| 7 | using System.Threading.Tasks; |
| 8 | using System.Windows.Data; |
| 9 | using System.Windows.Media; |
| 10 | |
| 11 | namespace UI.Controls.Converters |
| 12 | { |
| 13 | [ValueConversion(typeof(object), typeof(string))] |
| 14 | public class TimeConverter : IValueConverter |
| 15 | { |
| 16 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture) |
| 17 | { |
| 18 | return Time.ToString(int.Parse(value.ToString())); |
| 19 | } |
| 20 | |
| 21 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) |
| 22 | { |
| 23 | throw new NotImplementedException(); |
| 24 | } |
| 25 | } |
| 26 | } |