PageRenderTime 21ms CodeModel.GetById 12ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

/Main/src/DynamicDataDisplay/Common/PlotterEvents.cs

#
C# | 36 lines | 32 code | 4 blank | 0 comment | 0 complexity | 354643ed993d2ccd603067905b58381e MD5 | raw file
 1using System;
 2using System.Collections.Generic;
 3using System.Linq;
 4using System.Text;
 5using System.Windows;
 6
 7namespace Microsoft.Research.DynamicDataDisplay.Common
 8{
 9	public static class PlotterEvents
10	{
11		internal static void Notify(FrameworkElement target, PlotterChangedEventArgs args)
12		{
13			plotterAttachedEvent.Notify(target, args);
14			plotterChangedEvent.Notify(target, args);
15			plotterDetachingEvent.Notify(target, args);
16		}
17
18		private static readonly PlotterEventHelper plotterAttachedEvent = new PlotterEventHelper(Plotter.PlotterAttachedEvent);
19		public static PlotterEventHelper PlotterAttachedEvent
20		{
21			get { return plotterAttachedEvent; }
22		}
23
24		private static readonly PlotterEventHelper plotterDetachingEvent = new PlotterEventHelper(Plotter.PlotterDetachingEvent);
25		public static PlotterEventHelper PlotterDetachingEvent
26		{
27			get { return plotterDetachingEvent; }
28		}
29
30		private static readonly PlotterEventHelper plotterChangedEvent = new PlotterEventHelper(Plotter.PlotterChangedEvent);
31		public static PlotterEventHelper PlotterChangedEvent
32		{
33			get { return plotterChangedEvent; }
34		}
35	}
36}