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; } }
	}
}
