private void SetProgramInput(StringObjectPair <long> program) { if (m_mixEffectBlock1 != null) { if (!this.CurrentProgram.Equals(program)) { m_mixEffectBlock1.SetInt(_BMDSwitcherMixEffectBlockPropertyId.bmdSwitcherMixEffectBlockPropertyIdProgramInput, program.value); this.CurrentProgram = program; } } }
public void SetProgramInput(string name) { StringObjectPair <long> program = _programs.First(i => String.Equals(i.name, name, StringComparison.OrdinalIgnoreCase)); SetProgramInput(program); }