Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/DynamicDataDisplay/Common/PlotterChangedEventHandler.cs @ 13401

Last change on this file since 13401 was 12503, checked in by aballeit, 9 years ago

#2283 added GUI and charts; fixed MCTS

File size: 823 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Windows;
6using System.Windows.Input;
7
8namespace Microsoft.Research.DynamicDataDisplay.Common
9{
10  public class PlotterChangedEventArgs : RoutedEventArgs
11  {
12    public PlotterChangedEventArgs(Plotter prevPlotter, Plotter currPlotter, RoutedEvent routedEvent) : base(routedEvent)
13    {
14      if (prevPlotter == null && currPlotter == null) {
15        throw new ArgumentException("Both Plotters cannot be null.");
16      }
17
18      this.prevPlotter = prevPlotter;
19      this.currPlotter = currPlotter;
20    }
21
22    private readonly Plotter prevPlotter;
23    public Plotter PreviousPlotter { get { return prevPlotter; } }
24
25    private readonly Plotter currPlotter;
26    public Plotter CurrentPlotter { get { return currPlotter; } }
27  }
28}
Note: See TracBrowser for help on using the repository browser.