コード例 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="vis"></param>
        public void RegisterTreeEdgeBuilderHandlers(ITreeEdgeBuilderVisitor vis)
        {
            if (vis == null)
            {
                throw new ArgumentNullException("visitor");
            }

            TreeEdge += new EdgeEventHandler(vis.TreeEdge);
        }
コード例 #2
0
        /// <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));
 }