public static void ConnectFilters(IGraphBuilder graphBuilder, IPin sourcePin, IPin destPin, bool useIntelligentConnect) { int hr = 0; if (graphBuilder.IsNull()) { throw new ArgumentNullException("graphBuilder"); } if (sourcePin.IsNull()) { throw new ArgumentNullException("sourcePin"); } if (destPin.IsNull()) { throw new ArgumentNullException("destPin"); } if (useIntelligentConnect) { hr = graphBuilder.Connect(sourcePin, destPin); DsError.ThrowExceptionForHR(hr); } else { hr = graphBuilder.ConnectDirect(sourcePin, destPin, null); DsError.ThrowExceptionForHR(hr); } }
public static void ConnectFilters(IGraphBuilder graphBuilder, IPin sourcePin, IPin destPin, bool useIntelligentConnect) { int hr = 0; if (graphBuilder.IsNull()) throw new ArgumentNullException("graphBuilder"); if (sourcePin.IsNull()) throw new ArgumentNullException("sourcePin"); if (destPin.IsNull()) throw new ArgumentNullException("destPin"); if (useIntelligentConnect) { hr = graphBuilder.Connect(sourcePin, destPin); DsError.ThrowExceptionForHR(hr); } else { hr = graphBuilder.ConnectDirect(sourcePin, destPin, null); DsError.ThrowExceptionForHR(hr); } }