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()); }
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()); }