internal Input(AtemSwitcher switcher, IBMDSwitcherInput input) { inputMonitor = new InputMonitor(); inputMonitor.NameChanged += (s, e) => UpdateFields(); inputMonitor.ProgramChanged += (s, e) => UpdateFields(); inputMonitor.PreviewChanged += (s, e) => UpdateFields(); this.input = input; this.input.AddCallback(inputMonitor); long id; this.input.GetInputId(out id); Id = (int)id; UpdateFields(); }
public void Dispose() { input.RemoveCallback(inputMonitor); inputMonitor = null; input = null; }