public void SetVideoInput(string inputName, bool setRelated) { int numberOfInput = GetVideoInputCount(); for (int i = 0; i < numberOfInput; i++) if (this.videoRoutingList[i].inputName == inputName) { SetVideoInputIndex(i, setRelated); break; } }