Mercurial > silverbladetech
comparison MetroWpf/FxRates.UI/Converters/CcyFromIconConverter.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 using FxRates.UI.Helpers; | |
4 | |
5 namespace FxRates.UI.Converters | |
6 { | |
7 public class CcyFromIconConverter : IValueConverter | |
8 { | |
9 #region IValueConverter Members | |
10 | |
11 public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) | |
12 { | |
13 return IconHelper.GetCcyIcon(value.ToString().Substring(0,3)); | |
14 } | |
15 | |
16 public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) | |
17 { | |
18 throw new NotImplementedException(); | |
19 } | |
20 | |
21 #endregion | |
22 } | |
23 } |