Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/DynamicDataDisplay/Common/VisualBindingCollection.cs @ 12747

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

#2283 added GUI and charts; fixed MCTS

File size: 702 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Windows;
6using System.Diagnostics;
7
8namespace Microsoft.Research.DynamicDataDisplay.Common
9{
10  [DebuggerDisplay("Count = {Cache.Count}")]
11  public sealed class VisualBindingCollection
12  {
13    private Dictionary<IPlotterElement, UIElement> cache = new Dictionary<IPlotterElement, UIElement>();
14
15    internal Dictionary<IPlotterElement, UIElement> Cache
16    {
17      get { return cache; }
18    }
19
20    public UIElement this[IPlotterElement element]
21    {
22      get { return cache[element]; }
23    }
24
25    public bool Contains(IPlotterElement element)
26    {
27      return cache.ContainsKey(element);
28    }
29  }
30}
Note: See TracBrowser for help on using the repository browser.