コード例 #1
0
        public static bool MultiLinkWouldCauseConflict(BindPoint[] sources, BindPoint[] destinations)
        {
            BindingGraph tempGraph = bindGraph.Copy();

            tempGraph.AddMany(sources);
            tempGraph.AddMany(destinations);
            tempGraph.MultiBind(sources, destinations);
            return(tempGraph.HasConflict());
        }
コード例 #2
0
        public static bool LinkWouldCauseConflict(BindPoint a, BindPoint b)
        {
            BindingGraph tempGraph = bindGraph.Copy();

            tempGraph.Add(a);
            tempGraph.Add(b);
            tempGraph.Bind(a, b);
            return(tempGraph.HasConflict());
        }