Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/DynamicDataDisplay/Resources/D3IconHelper.cs @ 13777

Last change on this file since 13777 was 12503, checked in by aballeit, 10 years ago

#2283 added GUI and charts; fixed MCTS

File size: 1.0 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Windows.Media.Imaging;
6using System.Reflection;
7
8namespace 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.