コード例 #1
0
        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;
        }
コード例 #2
0
        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;
        }