Rev | Line | |
---|
[12503] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.Linq;
|
---|
| 4 | using System.Text;
|
---|
| 5 | using System.Windows.Media.Imaging;
|
---|
| 6 | using System.Reflection;
|
---|
| 7 |
|
---|
| 8 | namespace Microsoft.Research.DynamicDataDisplay
|
---|
| 9 | {
|
---|
| 10 | public static class D3IconHelper
|
---|
| 11 | {
|
---|
| 12 | private static BitmapFrame icon = null;
|
---|
| 13 | public static BitmapFrame DynamicDataDisplayIcon
|
---|
| 14 | {
|
---|
| 15 | get
|
---|
| 16 | {
|
---|
| 17 | if (icon == null)
|
---|
| 18 | {
|
---|
| 19 | Assembly currentAssembly = typeof(D3IconHelper).Assembly;
|
---|
| 20 | icon = BitmapFrame.Create(currentAssembly.GetManifestResourceStream("Microsoft.Research.DynamicDataDisplay.Resources.D3-icon.ico"));
|
---|
| 21 | }
|
---|
| 22 | return icon;
|
---|
| 23 | }
|
---|
| 24 | }
|
---|
| 25 |
|
---|
| 26 | private static BitmapFrame whiteIcon = null;
|
---|
| 27 | public static BitmapFrame DynamicDataDisplayWhiteIcon
|
---|
| 28 | {
|
---|
| 29 | get
|
---|
| 30 | {
|
---|
| 31 | if (whiteIcon == null)
|
---|
| 32 | {
|
---|
| 33 | Assembly currentAssembly = typeof(D3IconHelper).Assembly;
|
---|
| 34 | whiteIcon = BitmapFrame.Create(currentAssembly.GetManifestResourceStream("Microsoft.Research.DynamicDataDisplay.Resources.D3-icon-white.ico"));
|
---|
| 35 | }
|
---|
| 36 |
|
---|
| 37 | return whiteIcon;
|
---|
| 38 | }
|
---|
| 39 | }
|
---|
| 40 | }
|
---|
| 41 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.