/Main/src/DynamicDataDisplay/Common/PlotterEvents.cs
C# | 36 lines | 32 code | 4 blank | 0 comment | 0 complexity | 354643ed993d2ccd603067905b58381e MD5 | raw file
Possible License(s): CC-BY-SA-3.0
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Windows;
-
- namespace Microsoft.Research.DynamicDataDisplay.Common
- {
- public static class PlotterEvents
- {
- internal static void Notify(FrameworkElement target, PlotterChangedEventArgs args)
- {
- plotterAttachedEvent.Notify(target, args);
- plotterChangedEvent.Notify(target, args);
- plotterDetachingEvent.Notify(target, args);
- }
-
- private static readonly PlotterEventHelper plotterAttachedEvent = new PlotterEventHelper(Plotter.PlotterAttachedEvent);
- public static PlotterEventHelper PlotterAttachedEvent
- {
- get { return plotterAttachedEvent; }
- }
-
- private static readonly PlotterEventHelper plotterDetachingEvent = new PlotterEventHelper(Plotter.PlotterDetachingEvent);
- public static PlotterEventHelper PlotterDetachingEvent
- {
- get { return plotterDetachingEvent; }
- }
-
- private static readonly PlotterEventHelper plotterChangedEvent = new PlotterEventHelper(Plotter.PlotterChangedEvent);
- public static PlotterEventHelper PlotterChangedEvent
- {
- get { return plotterChangedEvent; }
- }
- }
- }