/// <summary> /// 给此源代码文本框去掉一个词法分析文本框 /// </summary> /// <param name="tokenListViewer"></param> public void RemoveTokenListViewer(ITokenListVisable <TEnumTokenType, TEnumVType, TTreeNodeValue> tokenListViewer) { if (this.m_TokenListViewerCollection.Contains(tokenListViewer)) { tokenListViewer.SetSourceCodeViewer(null); this.m_TokenListViewerCollection.Remove(tokenListViewer); } }
/// <summary> /// 给此源代码文本框添加一个词法分析文本框 /// </summary> /// <param name="tokenListViewer"></param> public void AddTokenListViewer(ITokenListVisable <TEnumTokenType, TEnumVType, TTreeNodeValue> tokenListViewer) { this.m_TokenListViewerCollection.Add(tokenListViewer); tokenListViewer.SetSourceCodeViewer(this); }