Mercurial > silverbladetech
comparison MetroWpf/FxRates.UI/Helpers/IconHelper.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.Media.Imaging; | |
3 | |
4 namespace FxRates.UI.Helpers | |
5 { | |
6 class IconHelper | |
7 { | |
8 public static BitmapImage GetCcyIcon(string isocode) | |
9 { | |
10 string uri; | |
11 BitmapImage image; | |
12 try | |
13 { | |
14 uri = string.Format("../Images/{0}.png", isocode); | |
15 image = new BitmapImage(new Uri(uri, UriKind.Relative)); | |
16 } | |
17 catch | |
18 { | |
19 uri = string.Format("../Images/{0}.png", "UNK"); | |
20 image = new BitmapImage(new Uri(uri, UriKind.Relative)); | |
21 } | |
22 | |
23 return image; | |
24 } | |
25 } | |
26 } |