예제 #1
0
 /// <summary>
 /// 设置此语法树显示器控件要监控的源代码控件
 /// </summary>
 /// <param name="sourceCodeViewer"></param>
 public void SetSourceCodeViewer(ISourceCodeVisable <TEnumTokenType, TEnumVType, TTreeNodeValue> sourceCodeViewer)
 {
     m_SourceCodeViewer = sourceCodeViewer;
     if (sourceCodeViewer != null && (!sourceCodeViewer.Contains(this)))
     {
         sourceCodeViewer.AddSyntaxTreeViewer(this);
     }
 }
 /// <summary>
 /// 设置所监视的源代码显示控件
 /// </summary>
 public void SetSourceCodeViewer(
     ISourceCodeVisable <TEnumTokenType, TEnumVType, TTreeNodeValue> value)
 {
     m_SourceCodeViewer = value;
     if (value != null && (!value.Contains(this)))
     {
         value.AddTokenListViewer(this);
     }
 }