Initial Commit
This commit is contained in:
28
Common/PlotterChangedEventHandler.cs
Normal file
28
Common/PlotterChangedEventHandler.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace Microsoft.Research.DynamicDataDisplay.Common
|
||||
{
|
||||
public class PlotterChangedEventArgs : RoutedEventArgs
|
||||
{
|
||||
public PlotterChangedEventArgs(Plotter prevPlotter, Plotter currPlotter, RoutedEvent routedEvent) : base(routedEvent)
|
||||
{
|
||||
if (prevPlotter == null && currPlotter == null) {
|
||||
throw new ArgumentException("Both Plotters cannot be null.");
|
||||
}
|
||||
|
||||
this.prevPlotter = prevPlotter;
|
||||
this.currPlotter = currPlotter;
|
||||
}
|
||||
|
||||
private readonly Plotter prevPlotter;
|
||||
public Plotter PreviousPlotter { get { return prevPlotter; } }
|
||||
|
||||
private readonly Plotter currPlotter;
|
||||
public Plotter CurrentPlotter { get { return currPlotter; } }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user