private MatDataOutputPortControl SearchOutputPortControl(MatDataOutputPort port, MatDataObjectControl portIn) { foreach(UIElement uie in portIn.PART_Outputs.Children) { MatDataOutputPortControl outpc = uie as MatDataOutputPortControl; if (outpc != null && outpc.OutputPort == port) return outpc; } return null; }
public MatDataOutputPortControl SearchOutputPortControl(MatDataOutputPort port) { foreach (MatDataObjectControl oc in ctrls) { foreach (UIElement uie in oc.PART_Outputs.Children) { MatDataOutputPortControl outpc = uie as MatDataOutputPortControl; if (outpc != null && outpc.OutputPort == port) return outpc; } } return null; }