Initial Commit
This commit is contained in:
36
Common/PlotterEvents.cs
Normal file
36
Common/PlotterEvents.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
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; }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user