Пример #1
0
 /// <summary>
 /// Gets the input pin for the given pin index</summary>
 /// <param name="pinIndex"></param>
 /// <returns></returns>
 public override ICircuitPin InputPin(int pinIndex)
 {
     if (Target.Type is MissingElementType)
     {
         return(Target.Type.Inputs[pinIndex]);
     }
     return(ProxyGroup.InputPin(pinIndex));
 }
Пример #2
0
        /// <summary>
        /// Gets the output pin for the given pin index</summary>
        /// <param name="pinIndex"></param>
        /// <returns></returns>
        public override ICircuitPin OutputPin(int pinIndex)
        {
            if (Target.Type is MissingElementType)
            {
                return(Target.Type.Outputs[pinIndex]);
            }
            var pin = ProxyGroup.OutputPin(pinIndex);

            return(pin);
        }