/// <summary> /// /// </summary> /// <param name="vis"></param> public void RegisterTreeEdgeBuilderHandlers(ITreeEdgeBuilderVisitor vis) { if (vis == null) { throw new ArgumentNullException("visitor"); } TreeEdge += new EdgeEventHandler(vis.TreeEdge); }
/// <summary> /// /// </summary> /// <param name="vis"></param> public void RegisterTreeEdgeBuilderHandlers(ITreeEdgeBuilderVisitor vis) { if (vis == null) throw new ArgumentNullException("visitor"); TreeEdge += new EdgeEventHandler(vis.TreeEdge); }
public void RegisterTreeEdgeBuilderHandlers(ITreeEdgeBuilderVisitor vis) { if (vis == null) { throw new ArgumentNullException("visitor"); } this.TreeEdge = (EdgeEventHandler) Delegate.Combine(this.TreeEdge, new EdgeEventHandler(vis, (IntPtr) vis.TreeEdge)); }