private void OnSourceBuffersChanged(object sender, ProjectionSourceBuffersChangedEventArgs e) { BufferGraph targetGraph = this.GetTargetGraph(); if (targetGraph != null) { targetGraph.SourceBuffersChanged(sender, e); } }
private void OnSourceBufferContentTypeChanged(object sender, ContentTypeChangedEventArgs e) { BufferGraph targetGraph = this.GetTargetGraph(); if (targetGraph != null) { targetGraph.ContentTypeChanged(sender, e); } }
public WeakEventHookForBufferGraph(BufferGraph targetGraph, ITextBuffer sourceBuffer) { _targetGraph = new WeakReference <BufferGraph>(targetGraph); _sourceBuffer = sourceBuffer; sourceBuffer.ContentTypeChanged += OnSourceBufferContentTypeChanged; ProjectionBuffer projectionBuffer = sourceBuffer as ProjectionBuffer; if (projectionBuffer != null) { projectionBuffer.SourceBuffersChangedImmediate += OnSourceBuffersChanged; } }
public GraphEventRaiser(BufferGraph graph, GraphBuffersChangedEventArgs args) { this.graph = graph; this.args = args; }