コード例 #1
0
ファイル: BufferGraph.cs プロジェクト: zcf7822/monodevelop
            private void OnSourceBuffersChanged(object sender, ProjectionSourceBuffersChangedEventArgs e)
            {
                BufferGraph targetGraph = this.GetTargetGraph();

                if (targetGraph != null)
                {
                    targetGraph.SourceBuffersChanged(sender, e);
                }
            }
コード例 #2
0
ファイル: BufferGraph.cs プロジェクト: zcf7822/monodevelop
            private void OnSourceBufferContentTypeChanged(object sender, ContentTypeChangedEventArgs e)
            {
                BufferGraph targetGraph = this.GetTargetGraph();

                if (targetGraph != null)
                {
                    targetGraph.ContentTypeChanged(sender, e);
                }
            }
コード例 #3
0
ファイル: BufferGraph.cs プロジェクト: zcf7822/monodevelop
            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;
                }
            }
コード例 #4
0
ファイル: BufferGraph.cs プロジェクト: zcf7822/monodevelop
 public GraphEventRaiser(BufferGraph graph, GraphBuffersChangedEventArgs args)
 {
     this.graph = graph;
     this.args  = args;
 }