Exemplo n.º 1
0
        public virtual DataRelationJoinEdge AddEdge(
            DataTableJoinVertex source,
            DataTableJoinVertex target,
            JoinType joinType,
            DataRelation relation
            )
        {
            if (source == null)
            {
                throw new ArgumentNullException("source");
            }
            if (target == null)
            {
                throw new ArgumentNullException("target");
            }
            if (relation == null)
            {
                throw new ArgumentNullException("relation");
            }

            DataRelationJoinEdge edge = (DataRelationJoinEdge)this.AddEdge(source, target);

            edge.Relation = relation;
            edge.JoinType = joinType;

            return(edge);
        }
        void udfs_TreeEdge(Object sender, EdgeEventArgs e)
        {
            DataRelationJoinEdge edge = (DataRelationJoinEdge)e.Edge;

            this.joins.Add(edge);
        }